FIX 完善重置密码功能

This commit is contained in:
jasder
2021-11-03 17:19:43 +08:00
parent 06cf52c384
commit 538d2113f1
9 changed files with 141 additions and 60 deletions

View File

@@ -461,5 +461,9 @@ module ApplicationHelper
def phone_mail_type value
value =~ /^1\d{10}$/ ? 1 : 0
end
def strip(str)
str.to_s.strip.presence
end
end