bwsw / cloudstack-ui

Modern UI for Apache Cloudstack User Self Service Portal
https://bitworks.software/
Apache License 2.0
164 stars 63 forks source link

User can log in, if entered a few spaces after login #1588

Closed nikonov1996 closed 5 years ago

nikonov1996 commented 5 years ago

Description

If enter a few spaces after the correct login and enter correct password, user log in system.

Steps to reproduce

  1. Enter correct login and few spaces in input field "login"
  2. Enter correct password
  3. Click "Login" button

Actual result

User log in.

Expected result

Login does not occur. The system shows a message in the snackbar "Incorrect username or password” /"Неверный пользователь или пароль”

Connected requirement IDs

[REQ_LOGIN_001]

Screenshots

00101 00202

dron8552 commented 5 years ago

@Nadya913 @nikonov1996 @evgeniiamokhova @ershovaelena From UI we send username with spaces, CloudStack trims it by itself.