修改BUG:防止更改用户登录名
This commit is contained in:
parent
d94521d523
commit
1899075d9b
|
@ -203,7 +203,7 @@ BEGIN
|
||||||
if(@id = 0 and not exists (select 1 from Users Where UserName = @userName))
|
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)
|
Insert Into Users (UserName, [Password], PassSalt, DisplayName, RegisterTime, ApprovedTime, [Description]) values (@userName, @password, @passSalt, @displayName, GETDATE(), @approveTime, @description)
|
||||||
else
|
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
|
||||||
END
|
END
|
||||||
GO
|
GO
|
||||||
|
|
Loading…
Reference in New Issue