Custom plugin, send login error.
whitts last edited by
Hello, I made a custom LDAP login and was wondering if there was a way to send back a custom error to the login form. My LDAP plugin requires users to login with their username not email and even though it asks for a username people still like to add their email.. At the moment i am just sending back the standard error (username and or password are not correct).
Is there a way to send back a custom error that will appear in red in the log in page when they attempt to sign in with there email? On a side note, shouldnt nodebb block emails entries (in the form validation) if login is set to username?