User Tools

Site Tools


stats:proc:changeattributes_account

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
stats:proc:changeattributes_account [2011/09/29 00:06]
Patrick Michel
stats:proc:changeattributes_account [2011/10/12 15:55]
Patrick Michel
Line 3: Line 3:
 <code xcend> <code xcend>
 # 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. # 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) {+changeAttributes(ident uid, ident username, string firstName, string lastName) { 
 +  assume exists //​accounts/​account[uid]/​admin || uid = username; 
   assume exists //​accounts/​account[username];​ # implicitly true in OO implementations   assume exists //​accounts/​account[username];​ # implicitly true in OO implementations
    
   update //​accounts/​account[username]/​firstName firstName;   update //​accounts/​account[username]/​firstName firstName;
   update //​accounts/​account[username]/​lastName lastName;   update //​accounts/​account[username]/​lastName lastName;
-  update //​accounts/​account[username]/​email email; +}
-  update //​accounts/​account[username]/​password password; +
-# roles: admin+
 </​code>​ </​code>​
stats/proc/changeattributes_account.txt · Last modified: 2013/07/10 12:32 (external edit)