public override bool resetPassword(string userMail, string newPassword) { Hashtable param = new Hashtable(); param.Add("@user_mail",userMail); bool result = PostGreServerUtility.checkResults("OrionsBelt_UsersCheckUserMail",param); if( result ) { param.Add("@user_password",newPassword); PostGreServerUtility.executeNonQuery("OrionsBelt_UsersResetPassword",param); } return result; }
/// <summary>Actualiza a data do ltimo login</summary> public override void updateLastLogin( string userMail ) { Hashtable param = new Hashtable(); param.Add("@user_mail",userMail); PostGreServerUtility.executeNonQuery("OrionsBelt_UsersUpdateLastLogin",param); }
/// <summary> /// remove todas as excepes /// </summary> public override void removeAll() { PostGreServerUtility.executeNonQuery("OrionsBelt_ExceptionLogRemoveAllExceptions"); }
/// <summary> /// faz reset ao id do user /// </summary> public override void resetUserRulerId() { PostGreServerUtility.executeNonQuery("OrionsBelt_UsersResetUserRulerId",null); }
/// <summary> /// remove a excepo com o identificador id /// </summary> /// <param name="id">identifucador da excepo</param> public override void remove(int id) { PostGreServerUtility.executeNonQuery("OrionsBelt_ExceptionLogRemoveException", "@id", id); }