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

Allow to display a flash message on lock.show #639

Merged
merged 3 commits into from
Oct 17, 2016
Merged

Allow to display a flash message on lock.show #639

merged 3 commits into from
Oct 17, 2016

Conversation

glena
Copy link
Contributor

@glena glena commented Oct 12, 2016

Closes #637

Added a flashMessage option to the show method.

Showing an error flash message:

lock.show({
  flashMessage:{
    type: 'error',
    text: 'error message'
  }
});

Showing a success error message:

lock.show({
  flashMessage:{
    type: 'success',
    text: 'success message'
  }
});

Showing errors in redirect mode:

lock.on("authorization_error", function(error) {

  lock.show({
    flashMessage:{
      type: 'error',
      text: error.error_description
    }
  });

});

@glena glena changed the title Lock not showing rule errors in redirect mode #637 DO NOT MERGE - Lock not showing rule errors in redirect mode #637 Oct 12, 2016
@hzalaz hzalaz changed the title DO NOT MERGE - Lock not showing rule errors in redirect mode #637 Lock not showing rule errors in redirect mode Oct 12, 2016
@hzalaz hzalaz modified the milestone: v10.5.0 Oct 12, 2016
@hzalaz hzalaz changed the title Lock not showing rule errors in redirect mode Allow to display a flash message on lock.show Oct 17, 2016
@hzalaz hzalaz merged commit 4ab17c7 into auth0:master Oct 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants