mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-21 04:05:45 +08:00
新增:建木账号禁止修改账号信息
This commit is contained in:
@@ -18,6 +18,7 @@ class Api::V1::Users::UpdateEmailService < ApplicationService
|
||||
end
|
||||
|
||||
def call
|
||||
raise Error, "此用户禁止修改邮箱." if @user.id.to_i === 104691
|
||||
raise Error, errors.full_messages.join(",") unless valid?
|
||||
raise Error, "密码不正确." unless @user.check_password?(@password)
|
||||
exist_owner = Owner.find_by(mail: @mail)
|
||||
|
||||
@@ -15,6 +15,7 @@ class Api::V1::Users::UpdatePhoneService < ApplicationService
|
||||
end
|
||||
|
||||
def call
|
||||
raise Error, "此用户禁止修改手机号." if @user.id.to_i === 104691
|
||||
raise Error, errors.full_messages.join(",") unless valid?
|
||||
raise Error, "密码不正确." unless @user.check_password?(@password)
|
||||
exist_owner = Owner.find_by(phone: @phone)
|
||||
|
||||
Reference in New Issue
Block a user