User Tools

Site Tools


stats:proc:resetpassword

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
stats:proc:resetpassword [2012/05/15 14:35] – Patrick Michelstats:proc:resetpassword [2013/07/10 12:32] (current) – external edit 127.0.0.1
Line 3: Line 3:
 <code xcend> <code xcend>
 resetPassword(ident username, string reset, string password) { resetPassword(ident username, string reset, string password) {
-  assume exists //accounts/account[username]/reset; # reset code was requested before, implies account exists +  assume exists /account[username]/reset; # reset code was requested before, implies account exists 
-  assume //accounts/account[username]/reset = reset; +  assume /account[username]/reset = reset; 
  
-  remove //accounts/account[username]/reset; +  remove /account[username]/reset; 
-  update //accounts/account[username]/password password;+  update /account[username]/password password;
 } }
 </code> </code>
  
stats/proc/resetpassword.1337085331.txt.gz · Last modified: by Patrick Michel

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki