This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
stats:proc:createstudentaccount [2011/09/29 01:03] Patrick Michel created |
stats:proc:createstudentaccount [2013/07/10 12:40] (current) |
||
---|---|---|---|
Line 2: | Line 2: | ||
<code xcend> | <code xcend> | ||
- | createStudentAccount(ident username, ident studentId, string lastName, string firstName, string email, string password) { | + | createStudentAccount(ident username, ident studentId, string lastName, string firstName, string email, string password, string code) { |
- | assume not exists //accounts/account[username]; | + | assume not exists /account[username]; |
- | assume count(studentId, //accounts/account/student/id) = 0; | + | assume count(studentId, /account/student/id) = 0; |
| | ||
- | insert //accounts | + | insert / |
- | <account username=[username] lastName=[lastName] firstName=[firstName] email=[email] password=[password] > | + | <account username=[username] lastName=[lastName] firstName=[firstName] email=[email] password=[password] code=[code]> |
<student id=[studentId] /> | <student id=[studentId] /> | ||
</account> | </account> | ||
- | } # roles: guest | + | } |
</code> | </code> |