tutorial for registration of User
- Pavel Kravčík
- Member | 1200
You can check this, there is working example. :)
https://github.com/…/web-project
- asinkan
- Member | 38
Yes it is in examples. When you download latest Nette then the path is
…nette/examples/CD-collection
if it is already in your localhost, run www. In my case…
http://localhost/…lection/www/
do not forget to run your server.
Last edited by asinkan (2018-01-26 09:56)
- CZechBoY
- Member | 3608
OK, how to create VERY SIMPLE registration in presenter (without model, that can be extracted to another class/service)
app/presenters/registration/default.latte
btw. nette/examples on github: https://github.com/nette-examples
I will add sign up+in example to the examples repo ^^.
edit: fixed addRule parameters order
Last edited by CZechBoY (2018-01-26 22:32)
- Arthedian
- Member | 26
CZechBoY wrote:
OK, how to create VERY SIMPLE registration in presenter (without model, that can be extracted to another class/service)
app/presenters/registration/default.latte
btw. nette/examples on github: https://github.com/nette/examples
I will add sign up+in example to the examples repo ^^.
Oh Ok, thanks :) I wasnt sure If I should use any of user function or create like this. And I should add salt or the function of hash automatically hash it too?
- duke
- Member | 650
CZechBoY wrote:
Yes, you can add some salt if you want to defend against dictionary/rainbow table attack.
Passwords::hash is not adding any other salt, it is your problem :-) It only hashes password with some hashing function.
Actually, Nette\Security\Passwords::hash uses PHP password_hash function which generates salts automatically. There is a possibility to provide salt manually via options argument, but that is deprecated in PHP 7.0.0.