Creating your own custom login page is mentioned in the authentication section of the documentation but I cannot find any resources instructing you on how to do so.
Essentially I'd just like to use an email instead of a username. I tried to copy the default Login component from https://github.com/marmelab/admin-on-rest/blob/master/src/mui/auth/Login.js and just change username
to email
but I'm seeing an error to do with use of compose.js in the enhance function.
I did it. Please check that:
There are some logics. Admin On Rest is setting "props", "props" has some methods for example translate, handleLogin etc... A working example is in here: https://btc.nixarsoft.com If your mind confused then you can ask here. I will write a blog post today for this issue.
Save this file with name "BtcLoginPage.js" and import it from your App.js file. Then add this to your tag: loginPage={BtcLoginPage}
Last status must be like this: