Esempio n. 1
0
 public int changePass(int uid, string oldPass, string newPass)
 {
     //takes in userID, old password and new password
     //passes these into an interface function along with userID
     //returns 0 or 1 on success or fail
     if (connection.changePassword(user_id, oldPass, newPass))
     {
         return(1);
     }
     else
     {
         return(0);
     }
 }