This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
stats:proc:requestreset [2012/01/11 14:57] Patrick Michel |
stats:proc:requestreset [2012/05/15 14:34] Patrick Michel |
||
---|---|---|---|
Line 2: | Line 2: | ||
<code xcend> | <code xcend> | ||
- | requestReset(string username, string reset) { | + | requestReset(ident username, string reset) { |
assume exists //accounts/account[username]; | assume exists //accounts/account[username]; | ||
| | ||
- | assume not exists //accounts/account[username]/code; # account is already validated. | + | assume not exists //accounts/account[username]/code; # account is already validated |
- | + | ||
- | | + | |
if not exists //accounts/account[username]/reset then | if not exists //accounts/account[username]/reset then | ||
- | insert //accounts/account[username]/reset | + | insert //accounts/account[username]/reset; |
fi | fi | ||
- | update //accounts/account[username]/reset | + | update //accounts/account[username]/reset reset; |
} | } | ||
</code> | </code> | ||