This shows you the differences between two versions of the page.
stats:proc:createaccount [2011/09/29 00:06] Patrick Michel |
stats:proc:createaccount [2013/07/10 12:40] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Create Account ====== | ||
- | <code xcend> | ||
- | # This doesn't take account validation into consideration at all. It probably has to be allowed to replace an unvalidated account. | ||
- | createAccount(ident username, string lastName, string firstName, string email, string password) { | ||
- | assume not exists //accounts/account[username]; | ||
- | | ||
- | insert //accounts <account username=[username] lastName=[lastName] firstName=[firstName] email=[email] password=[password] /> | ||
- | } # roles: admin | ||
- | </code> |