Esempio n. 1
0
        public void SignInWithPassword(string password, string ip)
        {
            SqlStoredProcedures sqlSP = new SqlStoredProcedures();

            try
            {
                string passwordHash = Hash.HashString(password, sqlSP.UserGetPasswordSalt(GetUserID()), new SHA3.SHA3Managed(512));
                this.sessionToken = sqlSP.UserLogin(GetUserID(), passwordHash, ip, null);
            }
            catch
            {
                this.sessionToken = null;
            }
        }