Dnn.Platform icon indicating copy to clipboard operation
Dnn.Platform copied to clipboard

Logging into portal with newly created user states user does not exist in error log but no warning message to user.

Open thabaum opened this issue 5 years ago • 2 comments

Description

User does not exist error created in admin log when trying to log into website using a newly created user.

(email as username)

Steps to reproduce

  1. Create a user manually using administrator account
  2. Attempt to log in using the new account details

Current result

User sees no warning or error message stating, just keeps clicking sign in... and each time a new error log file is produced.

Expected result

User logs in or:

A user logs in or see's a message why. Maybe a default error message if something new is thrown such as "We are unable to log you in at this time are currently looking into the issue. Please check back at a later time."

Affected version

  • [x] 9.2

Affected browser

  • [x ] Chrome
  • [x ] Firefox
  • [x ] Safari
  • [x ] Internet Explorer
  • [x ] Edge

thabaum avatar Aug 03 '18 13:08 thabaum

I was able to reproduce only when the new user email was existing before enabling email as username.

  1. Create a user with some email address
  2. Enable "user email as username"
  3. Create a new user with the same email as step 1
  4. Try to login as that new user.

I think the solution here is to prevent creating the user if that email is already in use previously.

valadas avatar Jul 27 '19 08:07 valadas

In order to fix this issue properly, we need to handle a few scenarios:

  1. When enabling "required unique emails (currently no UI for this), the system needs to check if there are any existing duplicate emails and block the action if it's the case
  2. Before being able to turn on "use email as username", "require unique emails" needs to be already turned on and the site restarted.

valadas avatar Aug 04 '21 05:08 valadas