User Tools

Site Tools


stats:proc:createaccount

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
stats:proc:createaccount [2011/09/29 19:28] – Patrick Michelstats:proc:createaccount [2013/07/10 12:40] (current) – external edit 127.0.0.1
Line 4: Line 4:
 # This doesn't take account validation into consideration at all. It probably has to be allowed to replace an unvalidated account. # This doesn't take account validation into consideration at all. It probably has to be allowed to replace an unvalidated account.
 createAccount(ident uid, ident username, string lastName, string firstName, string email, string password) { createAccount(ident uid, ident username, string lastName, string firstName, string email, string password) {
-  assume exists //accounts/account[uid]/admin;+  assume exists /account[uid]/admin;
  
-  assume not exists //accounts/account[username];+  assume not exists /account[username];
      
-  insert //accounts <account username=[username] lastName=[lastName] firstName=[firstName] email=[email] password=[password] />+  insert / <account username=[username] lastName=[lastName] firstName=[firstName] email=[email] password=[password] />
 } }
 </code> </code>
stats/proc/createaccount.1317317297.txt.gz · Last modified: by Patrick Michel

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki