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 revisionPrevious revision
stats:proc:requestreset [2012/05/15 14:34] – Patrick Michelstats:proc:requestreset [2013/07/10 12:32] (current) – external edit 127.0.0.1
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: by Patrick Michel

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki