Skip to content

Commit

Permalink
feat: 修改算法不匹配时的提示
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed Aug 14, 2024
1 parent 0ed2557 commit 293ffc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/service/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (as *AccountService) CheckAccount(uin int64, pwd string) (string, error) {
valid, err = util.ComparePasswordAndHash(pwd, acc.Pwd)
if err != nil {
if err == util.ErrInvalidHash {
return "", errors.New("hash 算法已更改,请重置密码")
return "", errors.New("算法已更改 请点击忘记密码以重置")
}

return "", err
Expand Down

0 comments on commit 293ffc0

Please sign in to comment.