This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
stats:proc:resetpassword [2012/01/11 14:53] Patrick Michel created |
stats:proc:resetpassword [2013/07/10 12:32] (current) |
||
|---|---|---|---|
| Line 2: | Line 2: | ||
| <code xcend> | <code xcend> | ||
| - | resetPassword(string uid, string reset, string 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; | ||
| } | } | ||
| </code> | </code> | ||