ferdium-server icon indicating copy to clipboard operation
ferdium-server copied to clipboard

Increase max size for passwords - Solving the "E-Mail address already in use" Error

Open bioluks opened this issue 11 months ago • 0 comments

Hi,

New installs are unable to register for accounts out of the box, I weren't able to do enough testing to see if it's related to password length (my one was about 40 characters). After clicking 'Create Account' it would always end up telling me "E-Mail address already in use"? I just launched the instance? Looking at issue #88 I could quickly verify it was related to the password length limiter in the code as @357up said.

Looking at the code only changing the number from 60 to 254 does the job just fine. Temporary solutions include: for PostgreSQL databases:

ALTER TABLE users ALTER COLUMN password TYPE varchar(254) ALTER COLUMN password SET NOT NULL;

and for MySQL:

ALTER TABLE `users` MODIFY `password` VARCHAR(254) NOT NULL;

bioluks avatar Mar 26 '24 22:03 bioluks