utdal / profiles

A simple CRUD/search profile system for research profiles, providing user-editable information and basic pages to aesthetically promote and highlight researcher activities and achievements.
MIT License
6 stars 0 forks source link

Disable login button on submit #92

Closed wunc closed 2 months ago

wunc commented 2 years ago

Disable login button on submit (and/or maybe add some sort of loading animation) to avoid possible errors by the user double-clicking the button instead of single-clicking.

See Sentry error PROFILES-5D for an example. An integrity constraint violation occurred because it tried to add the same user twice to the DB.

wunc commented 6 months ago

Also issue PROFILES-63

Illuminate\Database\QueryException

SQLSTATE[23000]: Integrity constraint violation: Duplicate entry for key 'role_user.PRIMARY' (SQL: insert into role_user (role_id, user_id) values (X, XXXX))