X-Git-Url: http://git.hcoop.net/bpt/portal.git/blobdiff_plain/bf47b57b3cf189b45e04ff86f9b83646108083be..64ec9551fc56c42188e195cbbe24c79ad18b293f:/pref.mlt?ds=sidebyside diff --git a/pref.mlt b/pref.mlt index e86826f..a18fd93 100644 --- a/pref.mlt +++ b/pref.mlt @@ -1,10 +1,17 @@ <% val you = Init.getUserId (); + val yourname = Init.getUserName (); val youremail = yourname ^ "@hcoop.net"; @header [("title", ["Member preferences"])]; if $"cmd" = "mod" then + val you_all = Init.getUser (); + + Init.modUser {you_all with + paypal = (case $"paypal" of "" => NONE | s => SOME s), + checkout = (case $"checkout" of "" => NONE | s => SOME s)}; + if $"dir" = "on" then Pref.setDirectory you else @@ -18,6 +25,13 @@ if $"cmd" = "mod" then %>