feat: PasswordResetBegin of auth controller;
fix: sql query updateLoginInformationByUsername used in-database hashing; refactor: renamed LogOutAccounts into LogOutSessions in models/auth; refactor: added error checks on opening transactions for all auth service methods; refactor: added error checks on commiting transactions likewise; refactor: simplified PasswordResetBegin logic; feat: implemented PasswordResetComplete method of auth service;
This commit is contained in:
@@ -66,7 +66,7 @@ type PasswordResetCompleteRequest struct {
|
||||
Email string `json:"email" binding:"required,email"`
|
||||
VerificationCode string `json:"verification_code" binding:"required" validate:"verification_code=reset"`
|
||||
NewPassword string `json:"password" binding:"required" validate:"password"`
|
||||
LogOutAccounts bool `json:"log_out_accounts"`
|
||||
LogOutSessions bool `json:"log_out_sessions"`
|
||||
}
|
||||
|
||||
type PasswordResetCompleteResponse struct {
|
||||
|
||||
Reference in New Issue
Block a user