Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E-Mail as username not possible during dirst time installation #2418

Closed
Offerel opened this issue Jun 21, 2019 · 5 comments
Closed

E-Mail as username not possible during dirst time installation #2418

Offerel opened this issue Jun 21, 2019 · 5 comments

Comments

@Offerel
Copy link
Contributor

Offerel commented Jun 21, 2019

With the fix for #2407 i can use a e-mail address as username. This works perfectly, if i add a user in a old installation. However, when i add a new user during first time installation, the @ and dot signs are removed from the username and the user is created without that signs. This prevents the user from logging in.

@Alkarex Alkarex added this to the 1.15.0 milestone Jun 21, 2019
@Alkarex
Copy link
Member

Alkarex commented Jun 21, 2019

$_SESSION['default_user'] = substr(preg_replace('/[^0-9a-zA-Z_]/', '', param('default_user', '')), 0, 38);

Alkarex added a commit to Alkarex/FreshRSS that referenced this issue Jun 21, 2019
@Alkarex
Copy link
Member

Alkarex commented Jun 21, 2019

Fix available in #2421

Alkarex added a commit that referenced this issue Jun 21, 2019
@Alkarex
Copy link
Member

Alkarex commented Jun 21, 2019

@Offerel Could you please test the /dev branch again?

@Offerel
Copy link
Contributor Author

Offerel commented Jun 22, 2019

Hi there. Just to be sure to have the latest installation, i cloned the repo again and checked out the dev branch. After that i made a new test vHost with Nginx and created a new user with a email address in first time installation. Only difference to the before done installation is, that i now used SQLite, instead of MySQL. This time, the email user was created successfully and i could login to that installation. For me the issue is solved.

Is a test with the other DB backends needed? I didn't have PostgreSQL installed on my raspberry pi currently. Most i use MySQL. Do you want, that i do some special security test since you flagged it with "security" label?

@Alkarex
Copy link
Member

Alkarex commented Jun 22, 2019

Thanks for the tests @Offerel 👍 I already checked with other databases, but additional testing is always welcome :-)

@Alkarex Alkarex closed this as completed Jun 22, 2019
@Alkarex Alkarex modified the milestones: 1.15.0, 1.14.3 Jul 13, 2019
javerous pushed a commit to javerous/FreshRSS that referenced this issue Jan 20, 2020
mdemoss pushed a commit to mdemoss/FreshRSS that referenced this issue Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants