Open eakenbor opened 1 year ago
When using overrideLogin
, the Login
page is server-side rendered (same as the default one) which means you won't be able to use React hooks, onClicks, etc but just an HTML form with associated action.
I'll try to see if it's possible to make it non-serverside rendered though
@dziraf have you tried?
@eakenbor This is ready and scheduled for v7 as it will be a breaking change because:
overrideLogin
, you will be able to override login page by doing: componentLoader.override(<path>, 'Login')
.@adminjs/express
or whatever plugin you're using to allow components.bundle.js
to be served publicly in your local development environment. In production it has always been treated as an asset and should've worked there without any issues but locally it was handled by a route which bundled the components dynamically and all internal admin routes required authorization. This one specific route will be served before auth logic.
Contact Details
No response
What happened?
I overrode the Login template so I can add an OTP field to the Email and Password fields. However, I am not able to get the OTP input as a callback in the "authenticate" method.
Here are my codes:
Please can someone explain how I can pass the OTP from the login form to the code?
Bug prevalence
Every time
AdminJS dependencies version
The latest
What browsers do you see the problem on?
No response
Relevant log output
No response
Relevant code that's giving you issues
No response