check in the frontend if the username is already taken #71

Closed
opened 2021-06-27 00:15:05 +00:00 by cami · 0 comments
Owner

Action which is affected: registration

In the frontend we should check if the name is already taken by someone else. If it's not the case the registration can be done without problems. If someone else already took that username there should be a warning to change the username.

Log from flask:

sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint failed: user.username
[SQL: INSERT INTO user (username, password, roles, is_active) VALUES (?, ?, ?, ?)]
[parameters: ('test', '$pbkdf2-sha512$25000$Ywxh7B1jzBnjPMfYG6MUgg$wyAlxUda5XjyJONz/qd4NXw2XPRjydl9vxpbBDcodHhZIsVcEzt/fkhMgA4bJ0Y3RMOVnLbVEWKkCPnGW3Q.OQ', None, 1)]
(Background on this error at: http://sqlalche.me/e/14/gkpj)
[2021-06-27 00:02:30,430] DEBUG in base: Attaching custom claims: {}

Action which is affected: registration In the frontend we should check if the name is already taken by someone else. If it's not the case the registration can be done without problems. If someone else already took that username there should be a warning to change the username. Log from flask: ``` sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint failed: user.username [SQL: INSERT INTO user (username, password, roles, is_active) VALUES (?, ?, ?, ?)] [parameters: ('test', '$pbkdf2-sha512$25000$Ywxh7B1jzBnjPMfYG6MUgg$wyAlxUda5XjyJONz/qd4NXw2XPRjydl9vxpbBDcodHhZIsVcEzt/fkhMgA4bJ0Y3RMOVnLbVEWKkCPnGW3Q.OQ', None, 1)] (Background on this error at: http://sqlalche.me/e/14/gkpj) [2021-06-27 00:02:30,430] DEBUG in base: Attaching custom claims: {} ```
cami added the
backend
bug
frontend
labels 2021-06-27 00:15:40 +00:00
cami closed this issue 2021-07-21 21:02:24 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: cami/Bachelorthesis_Code#71
No description provided.