-
-
Notifications
You must be signed in to change notification settings - Fork 227
Backend user management: remove plain-text password from invite, add reset password button #71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
…ip/admin-passwords
|
@zaxbux thanks for the PR. We're prioritising finishing off 1.1.3 and releasing the website and marketplace. Once these are done, we'll be happy to consider implementing this. We'll be in touch soon. |
|
This pull request will be closed and archived in 3 days, as there has been no activity in the last 60 days. |
|
This pull request will be closed and archived in 3 days, as there has been no activity in the last 60 days. |
|
@zaxbux sorry for the delay in getting back to this. I've had a look through and this looks fantastic - well done. I've tested the email out and works as expected. Could we perhaps move the restore button to be a text link underneath the Password fields so that it is contextual? Also, not sure how possible this is, but I notice currently that it contains the user's ID in the password restore link. Would it be possible to remove this and just rely on the code, so we're not inadvertently revealing user IDs? This is more of a nice-to-have change, but I'd also prefer if we could time limit the password restoration so that they have, say, 24 hours to restore their password. I'm not sure if this is already the case or not. |
|
I've got some ideas around improvements in this area so just hold off for now |
|
This pull request will be closed and archived in 3 days, as there has been no activity in the last 60 days. |
|
This pull request will be closed and archived in 3 days, as there has been no activity in the last 60 days. |
Since the password is hashed with a random salt, you need some way of identifying which user the hash belongs to before being able to verify the hash. Two things come to mind to accomplish this:
|
|
Ideally we handle this with 1. since that's the way Laravel handles it nowadays I believe. |
|
This pull request will be closed and archived in 3 days, as there has been no activity in this pull request for the last 6 months. |

This PR removes the plain-text password in the initial invite email for backend admins. Sure, a password reset link in an unencrypted email is not much more secure than including the password, but it does help improve "cyber hygiene" by preventing that password from being stored in whatever systems see that email on the way to the user's inbox. It also allows the user to choose their own password immediately, instead of remembering to change it after signing in.
I also added a "Send Password Restore" button to the user update form, giving other admins the ability to send a password reset email for another user.
Tested: