diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 52878cd7f..2bbca4f9e 100755 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -384,7 +384,7 @@ max_times=One phone number can not send verify code more than %s times. too_fast=Send too frequently, please try again later. manual_first=Please slide to finish the jigsaw first. verify_code_fail=Please input right verify code. -bind_phone=Please Bind Your Phone +bind_phone=Please Bind Your Phone. bind_phone_fail=Fail to bind phone number, please try again later. diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index 875c1d5ba..f22f6dfb1 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -381,9 +381,9 @@ sspi_auth_failed=SSPI 认证失败 [phone] format_err=手机号格式错误。 query_err=查询手机号失败,无法发送,请稍后再试。 -already_register=手机号已被注册 -not_register=手机号未注册 -not_modify=手机号未修改 +already_register=手机号已被注册。 +not_register=手机号未注册。 +not_modify=手机号未修改。 max_times=一个手机号发送验证码次数每天不能超过%s次。 too_fast=验证码发送太频繁,请稍后再试。 manual_first=请先拖动滑块填充拼图。 diff --git a/routers/user/setting/profile.go b/routers/user/setting/profile.go index aade07f2f..de1ba3144 100755 --- a/routers/user/setting/profile.go +++ b/routers/user/setting/profile.go @@ -91,7 +91,7 @@ func ProfilePost(ctx *context.Context, form auth.UpdateProfileForm) { return } - if setting.PhoneService.Enabled { + if setting.PhoneService.Enabled && strings.TrimSpace(form.PhoneNumber) != "" { if strings.TrimSpace(form.PhoneNumber) != ctx.User.PhoneNumber { if phoneService.IsVerifyCodeRight(strings.TrimSpace(form.PhoneNumber), strings.TrimSpace(form.VerifyCode)) { ctx.User.PhoneNumber = strings.TrimSpace(form.PhoneNumber)