User Tools

Site Tools


stats:proc:resetpassword

Reset Password

resetPassword(ident username, string reset, string password) {
  assume exists /account[username]/reset; # reset code was requested before, implies account exists
  assume /account[username]/reset = reset; 
 
  remove /account[username]/reset;
  update /account[username]/password password;
}
stats/proc/resetpassword.txt · Last modified: 2013/07/10 12:32 (external edit)