User Tools

Site Tools


stats:proc:requestreset

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
stats:proc:requestreset [2012/05/15 14:34]
Patrick Michel
stats:proc:requestreset [2013/07/10 12:32] (current)
Line 3: Line 3:
 <code xcend> <code xcend>
 requestReset(ident username, string reset) { requestReset(ident username, string reset) {
-  assume exists ​//accounts/​account[username];​+  assume exists /​account[username];​
   ​   ​
-  assume not exists ​//accounts/​account[username]/​code;​ # account is already validated+  assume not exists /​account[username]/​code;​ # account is already validated
     ​     ​
-  if not exists ​//accounts/​account[username]/​reset then +  if not exists /​account[username]/​reset then 
-    insert ​//accounts/​account[username]/​reset;​+    insert /​account[username]/​reset;​
   fi   fi
-  update ​//accounts/​account[username]/​reset reset;+  update /​account[username]/​reset reset;
 } }
 </​code>​ </​code>​
  
stats/proc/requestreset.1337085250.txt.gz · Last modified: 2012/05/15 14:34 by Patrick Michel