fixed 用户名称统一nickname

This commit is contained in:
xxq250 2022-12-02 11:16:13 +08:00
parent cbe10b4b89
commit 0747fc6849
1 changed files with 7 additions and 6 deletions

View File

@ -705,12 +705,13 @@ class User < Owner
end
def show_real_name
name = lastname + firstname
if name.blank?
nickname.blank? ? login : nickname
else
name
end
# name = lastname + firstname
# if name.blank?
# nickname.blank? ? login : nickname
# else
# name
# end
nickname.blank? ? login : nickname
end
def update_hashed_password