Skip to content

No error message when registering with e-mail address as name #9876

@PierreMesure

Description

@PierreMesure

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:

  1. Go to Sign Up
  2. Fill in the required fields. With Your Name, try 'test@example.org'
  3. Submit
  4. See no error but no account is created

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.

image

Stacktrace

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

Extra data (please complete the following information):

  • Decidim Version: 0.25.2, nightly
  • Decidim installation: Tested on Nightly

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions