mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-31 11:36:15 -06:00
change password func + tests
This commit is contained in:
parent
929e4fb049
commit
fd0fc31ac3
4 changed files with 178 additions and 1 deletions
|
|
@ -29,7 +29,8 @@ import (
|
|||
|
||||
// Processor wraps a bunch of functions for processing user-level actions.
|
||||
type Processor interface {
|
||||
// ChangePassword changes the specified user's password from old => new, or returns an error.
|
||||
// ChangePassword changes the specified user's password from old => new,
|
||||
// or returns an error if the new password is too weak, or the old password is incorrect.
|
||||
ChangePassword(ctx context.Context, user *gtsmodel.User, oldPassword string, newPassword string) gtserror.WithCode
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue