User Tools

Site Tools


stats:proc:changeattributes_account

This is an old revision of the document!


Change Attributes (Account)

# the current implementation also changes the username, i.e. it would need an additional parameter, I can't support it and I would forbid it anyway.
changeAttributes(ident username, string firstName, string lastName, string email, string password) {
  assume exists //accounts/account[username]; # implicitly true in OO implementations
 
  update //accounts/account[username]/firstName firstName;
  update //accounts/account[username]/lastName lastName;
  update //accounts/account[username]/email email;
  update //accounts/account[username]/password password;
} # roles: admin
stats/proc/changeattributes_account.1317247600.txt.gz · Last modified: 2011/09/29 00:06 by Patrick Michel