User Tools

Site Tools


stats:proc:createstudentaccount

This is an old revision of the document!


Create Student Account

createStudentAccount(ident username, ident studentId, string lastName, string firstName, string email, string password) {
  assume not exists //accounts/account[username];
  assume count(studentId, //accounts/account/student/id) = 0;
 
  insert //accounts
    <account username=[username] lastName=[lastName] firstName=[firstName] email=[email] password=[password] >
      <student id=[studentId] />
    </account>
} # roles: guest
stats/proc/createstudentaccount.1317251006.txt.gz · Last modified: 2011/09/29 01:03 by Patrick Michel