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
Next revision
Previous revision
stats:proc:requestreset [2012/01/11 14:59]
Patrick Michel
stats:proc:requestreset [2013/07/10 12:32] (current)
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 /​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.1326290348.txt.gz · Last modified: 2012/01/11 14:59 by Patrick Michel