angular-fullstack/generator-angular-fullstack

Duplicate username does not consider title case

開放

#875 建立於 2015年3月6日

 (3 則留言) (0 個反應) (0 位負責人)JavaScript (1,268 個分叉)batch import
Help Wantedminor

倉庫指標

星標
 (6,134 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

I was able to register two accounts with usernames sabachanna and Sabachanna. It did not give duplicate username error. It is not able to capture lower case or title case differences. I tried to look into it but mongodb does not support case-insensitive queries.

Should we store the username as all capital or all lower in mongodb and then, on registration, convert the given username to upper case to see if duplicate is already available or not. Should we consider this on presentation layer?

貢獻者指南