mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 15:52:26 -05:00
Remind the user that password resets don't work without restarting.
Every time I reset the password, I assume that something went wrong, because I forget that the server will not pick up on the reset password until it's been restarted according to the docs: https://docs.gotosocial.org/en/latest/admin/cli/#gotosocial-admin-account-password A reminder here would help reduce confusion.
This commit is contained in:
parent
c8a780e12a
commit
c71ab2788b
1 changed files with 1 additions and 0 deletions
|
|
@ -383,6 +383,7 @@ var Password action.GTSAction = func(ctx context.Context) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
user.EncryptedPassword = string(encryptedPassword)
|
user.EncryptedPassword = string(encryptedPassword)
|
||||||
|
log.Info(ctx, "Updating password; you must restart the server to use the new password.")
|
||||||
return state.DB.UpdateUser(
|
return state.DB.UpdateUser(
|
||||||
ctx, user,
|
ctx, user,
|
||||||
"encrypted_password",
|
"encrypted_password",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue