This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
stats:proc:changeattributes_account [2011/09/29 19:29] Patrick Michel |
stats:proc:changeattributes_account [2011/11/02 14:37] Patrick Michel |
||
---|---|---|---|
Line 2: | Line 2: | ||
<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, |
- | changeAttributes(ident uid, ident username, string firstName, string lastName, string email, string password) { | + | # I can't support it and I would forbid it anyway. |
+ | changeAttributes(ident uid, ident username, string firstName, string lastName) { | ||
assume exists //accounts/account[uid]/admin || uid = username; | assume exists //accounts/account[uid]/admin || uid = username; | ||
Line 10: | Line 11: | ||
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; | ||
} | } | ||
</code> | </code> |