I’m a complete newbie with Play! I’m a Django developer and I started using Play! a few days ago.
I can’t find information on how to register new users to my application. I don’t want to use OAuth, I just want to manage users in my own database with passwords encryption. By the way, I’m using Java version.
I’m a complete newbie with Play! I’m a Django developer and I started using
Share
There is nothing ready yet, however I’d suggest you to use play-authenticate (live demo) as a base.
That’s currently the most advanced solution for Play 2 for authentication and authorization. It combines deadbolt-2 for authorization (roles and permissions) + own authentication which makes it very comfortable stack to start with.
Although its base idea is deliver a way for authenticating users with OAuth – the
providersare a configurable options, so you can disable it and base on e-mail provider only.Note important for you it… hasn’t build-in user management, however I can ensure you that in current state it requires adding just several actions to create what you need. I’m doing it in few of my projects and soon will send a pull request with that changes.
Edit: By default all providers are enabled with dummy credentials, of course it will fail to run. You need to disable them in
conf/play.plugins(by just removing unwanted lines) most probably you have to keep only these lines to keep deadbolt + PA with mailer:Also don’t forget to set proper SMTP credentials in
conf/play-authenticate/smtp.confto make sure that password recovering will work.