fixed 修改用户

This commit is contained in:
xxqfamous 2023-05-30 11:41:36 +08:00
parent d78408d799
commit 7fdd39291b
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ module Register
login_exist = Owner.exists?(login: login) || ReversedKeyword.check_exists?(login)
if user.present?
raise LoginError, '登录名已被使用' if login_exist && login != user&.login
raise LoginError, '登录名已被他人使用' if login_exist && login != user&.login
else
raise LoginError, '登录名已被使用' if login_exist
end