Sonerezh / sonerezh

A self-hosted, web-based application to stream your music, everywhere.
https://www.sonerezh.bzh
GNU Affero General Public License v3.0
767 stars 122 forks source link

Can not add new user. #189

Closed katlyn closed 7 years ago

katlyn commented 8 years ago

This has now happened to me twice - in 1.0.0 and 1.1.1 - and the only workaround is to duplicate and edit the database. When I try to add a new user (I only have two beforehand), the dialog exits without a confirmation and without adding a new user. Is this happening to anyone else?

Edit: Also, what type of hashing does sonerezh use?

ltguillaume commented 8 years ago

Do you have the email option enabled? I had to disable it and user creation did work afterwards.

lGuillaume124 commented 8 years ago

Edit: Also, what type of hashing does sonerezh use?

See https://github.com/Sonerezh/sonerezh/blob/master/app/Controller/AppController.php#L23 and https://github.com/Sonerezh/sonerezh/blob/master/app/Controller/AppController.php#L59

Sonerezh uses bcrypt(), introduced by CakePHP with the BlowfishPasswordHasher() function (http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#using-bcrypt-for-passwords)

atomiix commented 7 years ago

Any news ?

katlyn commented 7 years ago

Sorry forgot to close after it was solved.

Linuxine commented 7 years ago

Hi, I have just made a fresh install of Sonerezh 1.1.3, and I have the exact same issue, I am totally unable to add a user, the window "Create a user" closes with no error in the GUI, or in any logs I have found, and nothing is done, no user creation... What was the solution for this one ?