修改BUG:防止更改用户登录名

This commit is contained in:
Argo-Lenovo 2016-12-23 11:38:39 +08:00
parent d94521d523
commit 1899075d9b
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ BEGIN
if(@id = 0 and not exists (select 1 from Users Where UserName = @userName))
Insert Into Users (UserName, [Password], PassSalt, DisplayName, RegisterTime, ApprovedTime, [Description]) values (@userName, @password, @passSalt, @displayName, GETDATE(), @approveTime, @description)
else
Update Users set UserName = @userName, Password = @password, PassSalt = @passSalt, DisplayName = @displayName where ID = @id
Update Users set [Password] = @password, PassSalt = @passSalt, DisplayName = @displayName where ID = @id
end
END
GO