-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Lock blank after # #216
Comments
mm That is weird. Is there any js error in the console? can you attach a har file of the whole interaction? (start capturing before you go to the # page ultil you get the empty # box). Thx |
No I do have a successful # action in the log. There is no successful login, but that is expected: I have lock configured with { loginAfter#: false } in the Advanced plugin Lock config setting. If I disable that, after # and autologin, I see: I can make this work for me, but see the attached har exemplifying the problem for me: |
ohh makes sense now. This is because of the You should be able to hook to the You can add the needed js to the |
Gotcha, I'll try that, thanks. |
In case anyone is interested, I settled on this custom CSS in the 'Customize the Login Widget CSS' setting: #auth0-login-form {
position: relative;
}
##-msg {
position: absolute;
top: 50%;
transform: translateY(-50%);
padding: 0px 24px;
} and this custom JS in the 'Customize the Login Widget with custom JS' setting: // called every time triggered
lock.on('# success', function() {
var msg = jQuery('<div id="#-msg">You have signed up successfully. ' +
'Once you have verified your email address ' +
'and an admin has activated your account, ' +
'you will be able to log in.</div>');
jQuery('#auth0-login-form')
.append(msg);
}); |
good :) |
I have # enabled, and it works correctly, however, after the user submits the built-in email/password # form, the widget goes blank -- there's no message about whether # was successful or not, or instructions about what to do next:

Looking at the document elements, it appears that the entire auth0-login-form element is empty:

Is there something I must set to show a message after #? It is not clear to me yet whether it is a problem with the WP plugin or Lock itself. In my perfect world, I can customize the text of that message by a parameter to the lock widget. But I was unable to find anything about this issue in the documentation.
The text was updated successfully, but these errors were encountered: