Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Showing success message after password change #33

Open
meysammahfouzi opened this issue Jul 4, 2019 · 0 comments
Open

Showing success message after password change #33

meysammahfouzi opened this issue Jul 4, 2019 · 0 comments
Assignees

Comments

@meysammahfouzi
Copy link

I've got the following ChangePassword component on change-password.htm page:

[ChangePassword]
slug_required = 0
mode = "submit"
flash_on = 1
redirect_on = 0
check_old_password = 1

After the form is submitted, the user will remain on the same page. Now I want to show a success message to them.

It's possible to check that change password got an error:

{% set arError = ChangePassword.getErrorMessage %}
{% if arError.message is not empty %}
    <p>{{ arError.message }}</p>
{% endif %}

But how to check the operation was successful? I don't won't to put the success message in the else statement because the first time that page loads that message will be shown.

@kharanenka kharanenka self-assigned this Jul 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants