0 Members and 1 Guest are viewing this topic.
If the username is left empty, current username is used
[management]<META HTTP-EQUIV="Refresh" CONTENT="0; URL={.postvar|remoteurl.}"> <!-- META HTTP-EQUIV="Pragma" CONTENT="no-cache" --> {.if|{.postvar|action.}|{: {.switch|{.postvar|action.}|,| changepass|{:{.if|{.=|{.postvar|newpass.}|{.postvar|newpasscon.}.}|{:{.set account|%user%|password={.postvar|newpass.}.}:}/if.}:} |changename|{:{.set account|%user%|newname={.postvar|newname.}.}:} |createfolder|{: {.mkdir|%folder%/{.postvar|foldername.}.} :} |{.comment|DO NOTHING.}/switch.}:}.}
[]<form method=post action="/~management"><input type="hidden" name="remoteurl" value="javascript:unescape(window.location.href);"><INPUT READONLY NAME="name" value="%user%"><input type="text" name="newpass"><input type="submit" value="{.!Change.}"></form>
the problem is that it still executes the commands inside the switch even when theres no postvar submitted ... and so everytime the page loads the password for the current user is set to nothing ... O.o and i dont really und erstand why : - / every switch command is executed ...