Hi, I just found a little bug and managed to reproduce it on Nightly.
When using an e-mail address in the field Your name, the registration process fails silently.
It would be good to have an error message. And of course, some frontend dynamic check would be nice as well.
There's nothing to see but it looks like this after submitting.
No error in the stacktrace, just a ROLLBACK.
INFO -- : Processing by Decidim::Devise::RegistrationsController#create as HTML
INFO -- : Parameters: {"utf8"=>"✓", "authenticity_token"=>"xxx", "xxx-url"=>"", "user"=>{"name"=>"test@example.org", "nickname"=>"testtest", "email"=>"test@example.org", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "tos_agreement"=>"1", "newsletter"=>"0"}}
DEBUG -- : Decidim::User Load (2.5ms) SELECT "decidim_users".* FROM "decidim_users" WHERE "decidim_users"."type" = $1 AND "decidim_users"."invitation_token" IS NULL AND "decidim_users"."email" = $2 AND "decidim_users"."decidim_organization_id" = $3 LIMIT $4 [["type", "Decidim::User"], ["email", "test@example.org], ["decidim_organization_id", 2], ["LIMIT", 1]]
DEBUG -- : Decidim::User Load (0.6ms) SELECT "decidim_users".* FROM "decidim_users" WHERE "decidim_users"."type" = $1 AND "decidim_users"."invitation_token" IS NULL AND "decidim_users"."nickname" = $2 AND "decidim_users"."decidim_organization_id" = $3 LIMIT $4 [["type", "Decidim::User"], ["nickname", "testtest"], ["decidim_organization_id", 2], ["LIMIT", 1]]
DEBUG -- : Decidim::User Load (0.5ms) SELECT "decidim_users".* FROM "decidim_users" WHERE "decidim_users"."type" = $1 AND "decidim_users"."invitation_token" IS NOT NULL AND "decidim_users"."invitation_accepted_at" IS NULL AND "decidim_users"."decidim_organization_id" = $2 AND "decidim_users"."email" = $3 LIMIT $4 [["type", "Decidim::User"], ["decidim_organization_id", 2], ["email", "test@example.org], ["LIMIT", 1]]
DEBUG -- : (0.3ms) BEGIN
DEBUG -- : Decidim::User Exists? (0.7ms) SELECT 1 AS one FROM "decidim_users" WHERE "decidim_users"."type" = $1 AND "decidim_users"."email" = $2 AND "decidim_users"."decidim_organization_id" = $3 LIMIT $4 [["type", "Decidim::User"], ["email", "test@example.org"], ["decidim_organization_id", 2], ["LIMIT", 1]]
DEBUG -- : CACHE Decidim::User Exists? (0.0ms) SELECT 1 AS one FROM "decidim_users" WHERE "decidim_users"."type" = $1 AND "decidim_users"."email" = $2 AND "decidim_users"."decidim_organization_id" = $3 LIMIT $4 [["type", "Decidim::User"], ["email", "test@example.org"], ["decidim_organization_id", 2], ["LIMIT", 1]]
DEBUG -- : Decidim::User Exists? (0.6ms) SELECT 1 AS one FROM "decidim_users" WHERE "decidim_users"."type" = $1 AND "decidim_users"."nickname" = $2 AND "decidim_users"."decidim_organization_id" = $3 LIMIT $4 [["type", "Decidim::User"], ["nickname", "testtest"], ["decidim_organization_id", 2], ["LIMIT", 1]]
DEBUG -- : (0.2ms) ROLLBACK
Describe the bug
Hi, I just found a little bug and managed to reproduce it on Nightly.
When using an e-mail address in the field Your name, the registration process fails silently.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It would be good to have an error message. And of course, some frontend dynamic check would be nice as well.
Screenshots
There's nothing to see but it looks like this after submitting.
Stacktrace
No error in the stacktrace, just a ROLLBACK.
Extra data (please complete the following information):