User Tools

Site Tools


stats:proc:createstudentaccount

Create Student Account

createStudentAccount(ident username, ident studentId, string lastName, string firstName, string email, string password, string code) {
  assume not exists /account[username];
  assume count(studentId, /account/student/id) = 0;
 
  insert /
    <account username=[username] lastName=[lastName] firstName=[firstName] email=[email] password=[password] code=[code]>
      <student id=[studentId] />
    </account>
}
stats/proc/createstudentaccount.txt · Last modified: 2013/07/10 12:40 (external edit)