fixed 用户名称统一nickname
This commit is contained in:
parent
cbe10b4b89
commit
0747fc6849
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue