修改资料无效的用户昵称导航栏显示问题修复

course_group
linhk 11 years ago
parent 2478cac7d1
commit c55c6156d8

@ -75,6 +75,7 @@ class MyController < ApplicationController
# Edit user's account
def account
@user = User.current
lg=@user.login
@pref = @user.pref
diskfile = disk_filename('User', @user.id)
diskfile1 = diskfile + 'temp'
@ -137,7 +138,7 @@ class MyController < ApplicationController
if File.exist?(diskfile1)
File.delete(diskfile1)
end
@user
@user.login = lg
end
else
# 确保文件被删除

Loading…
Cancel
Save