mirror of
				https://github.com/bolucat/Archive.git
				synced 2025-10-31 11:57:05 +08:00 
			
		
		
		
	Update On Sun Jun 29 20:39:06 CEST 2025
This commit is contained in:
		| @@ -150,7 +150,7 @@ func (a *HookAuth) SaveUser() (*users.User, error) { | ||||
| 	} | ||||
|  | ||||
| 	if u == nil { | ||||
| 		pass, err := users.HashAndValidatePwd(a.Cred.Password, a.Settings.MinimumPasswordLength) | ||||
| 		pass, err := users.ValidateAndHashPwd(a.Cred.Password, a.Settings.MinimumPasswordLength) | ||||
| 		if err != nil { | ||||
| 			return nil, err | ||||
| 		} | ||||
| @@ -186,7 +186,7 @@ func (a *HookAuth) SaveUser() (*users.User, error) { | ||||
|  | ||||
| 		// update the password when it doesn't match the current | ||||
| 		if p { | ||||
| 			pass, err := users.HashAndValidatePwd(a.Cred.Password, a.Settings.MinimumPasswordLength) | ||||
| 			pass, err := users.ValidateAndHashPwd(a.Cred.Password, a.Settings.MinimumPasswordLength) | ||||
| 			if err != nil { | ||||
| 				return nil, err | ||||
| 			} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 github-action[bot]
					github-action[bot]