mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
initial_password: Add unit test for INITIAL_PASSWORD_SALT = None.
This commit is contained in:
committed by
Tim Abbott
parent
9e17692d94
commit
a5472ddee7
@@ -136,6 +136,11 @@ class AddNewUserHistoryTest(ZulipTestCase):
|
|||||||
self.send_stream_message(self.example_email('hamlet'), streams[0].name, "test")
|
self.send_stream_message(self.example_email('hamlet'), streams[0].name, "test")
|
||||||
add_new_user_history(user_profile, streams)
|
add_new_user_history(user_profile, streams)
|
||||||
|
|
||||||
|
class InitialPasswordTest(ZulipTestCase):
|
||||||
|
def test_none_initial_password_salt(self) -> None:
|
||||||
|
with self.settings(INITIAL_PASSWORD_SALT=None):
|
||||||
|
self.assertIsNone(initial_password('test@test.com'))
|
||||||
|
|
||||||
class PasswordResetTest(ZulipTestCase):
|
class PasswordResetTest(ZulipTestCase):
|
||||||
"""
|
"""
|
||||||
Log in, reset password, log out, log in with new password.
|
Log in, reset password, log out, log in with new password.
|
||||||
|
|||||||
Reference in New Issue
Block a user