teamcodeyard / tir-api

Web gateway for project TIR
1 stars 1 forks source link

POST - Create user - Password validation [UX] #2

Closed GCsabi closed 9 months ago

GCsabi commented 10 months ago

Steps to reproduce the issue:

  1. Local dev environment must be running
  2. From Postman send the following request to the given endpoint (password doesn't contain special character)
 {
    "email": "trololololollolololooo@test.hu",
    "password": "helloworlD1"
} 

Expected Result: "message": "The password must have minimum 1 special character" We would expect a helping hint for the user what is missing from a proper password, so that it wouldn't cause frustration.

Actual Result: "message": "The password must be at least 10 characters, must contain numeric characters, minimum 1 uppercase letter [A-Z] and minimum 1 special character"

GCsabi commented 10 months ago

Steps to reproduce the issue:

  1. Local dev environment must be running
  2. From Postman send the following request to the given endpoint (password doesn't contain special character)
 {
    "email": "trololololollolololooo@test.hu",
    "password": "helloworl1."
} 

Expected Result: "message": "The password must have minimum 1 uppercase letter [A-Z]" We would expect a helping hint for the user what is missing from a proper password, so that it wouldn't cause frustration.

Actual Result: "message": "The password must be at least 10 characters, must contain numeric characters, minimum 1 uppercase letter [A-Z] and minimum 1 special character"

GCsabi commented 10 months ago

Steps to reproduce the issue:

  1. Local dev environment must be running
  2. From Postman send the following request to the given endpoint (password doesn't contain special character)
 {
    "email": "trololololollolololooo@test.hu",
    "password": "helloworlD."
} 

Expected Result: "message": "The password must contain numeric characters" We would expect a helping hint for the user what is missing from a proper password, so that it wouldn't cause frustration.

Actual Result: "message": "The password must be at least 10 characters, must contain numeric characters, minimum 1 uppercase letter [A-Z] and minimum 1 special character"

GCsabi commented 10 months ago

Steps to reproduce the issue:

  1. Local dev environment must be running
  2. From Postman send the following request to the given endpoint (password doesn't contain special character)
 {
    "email": "trololololollolololooo@test.hu",
    "password": "hellow1D."
} 

Expected Result: "message": "The password must be at least 10 characters," We would expect a helping hint for the user what is missing from a proper password, so that it wouldn't cause frustration.

Actual Result: "message": "The password must be at least 10 characters, must contain numeric characters, minimum 1 uppercase letter [A-Z] and minimum 1 special character"

GCsabi commented 10 months ago

Steps to reproduce the issue:

  1. Local dev environment must be running
  2. From Postman send the following request to the given endpoint (password doesn't contain special character)
{
    "email": "trololololollolololooo@test.hu",
    "password": "HELLOWORLlD.."
} 

Expected Result: "message": "The password must contain minimum 1 lowercase letter [A-Z] " We would expect a helping hint for the user what is missing from a proper password, so that it wouldn't cause frustration.

Actual Result: "message": "The password must be at least 10 characters, must contain numeric characters, minimum 1 uppercase letter [A-Z] and minimum 1 special character"

iujlaki commented 9 months ago

Nice catch but it's out of scope right now.