[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] detect successfully changed password
> The input submit on my change password page is called "Change Password" and
> this code is also on the page:
>
> [tag touch userdb][/tag]
> [set Change Password]
> [tag flag write]userdb[/tag]
> [userdb change_pass]
> [/set]
>
> Does that [userdb change_pass] as part of the Change Password click event do
> what you're talking about? How can I get a return value from that?
>
Without having done this myself, I would have thought you could
change the above code to this:
[set Change Password]
[if type=explicit compare="[userdb change_pass]"]
[set pass_msg][L]Password changed without any drama.[/L][/set]
[/if]
[/set]
Then you could put this code somewhere on your next page to show
the "changed password" message, if one is available:
[if scratch pass_msg]
<b>[scratchd pass_msg]</b>
[/if]
You could, of course, leave off the [if] check if your pass_msg
included all of the message and HTML that you want to display.
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/