One time password on forgot password
This commit is contained in:
parent
5f6e13c645
commit
1e0a0710fd
16 changed files with 326 additions and 109 deletions
|
@ -382,6 +382,15 @@ namespace WebsitePanel.EnterpriseServer
|
|||
new SqlParameter("@password", password));
|
||||
}
|
||||
|
||||
public static void SetUserOneTimePassword(int userId, string password, int auths)
|
||||
{
|
||||
SqlHelper.ExecuteNonQuery(ConnectionString, CommandType.StoredProcedure,
|
||||
ObjectQualifier + "SetUserOneTimePassword",
|
||||
new SqlParameter("@UserID", userId),
|
||||
new SqlParameter("@Password", password),
|
||||
new SqlParameter("@OneTimePasswordState", auths));
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region User Settings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue