-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Change password at first login (#650)
* Add PASSWORD_CHANGE_FIRST_LOGIN setting. * Add change_password_first_login property to Userdata model. * Create custom G3WSetPasswordForm and custom G3WLoginView to use for change password at first login workflow. * Start testing. * Testing. * Split change password at first login from reset password workflow. * Create a custom view for confirm reset password to split User rest password workflow from Change password at first login worflow. * Override settings fix. --------- Co-authored-by: wlorenzetti <[email protected]>
- Loading branch information
1 parent
c01ccc3
commit ca5ba4e
Showing
8 changed files
with
201 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
g3w-admin/usersmanage/migrations/0014_userdata_change_password_first_login.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 3.2.23 on 2023-11-10 08:56 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('usersmanage', '0013_auto_20230922_0815'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='userdata', | ||
name='change_password_first_login', | ||
field=models.BooleanField(blank=True, default=False, null=True, verbose_name='User changed password at first login'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters