用户登录 [英] user log in

查看:78
本文介绍了用户登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请问有人可以告诉我如何检查区分大小写的用户名和密码,因为我知道不区分大小写的代码...告诉我代码并对其进行解释..:doh:

please is there any one who can tell me how to check case sensitive username and password as i know the code of non-case sensitive one....tell me the code and explain it also.. :doh:

推荐答案

how to check case sensitive username


用户名字段通常不区分大小写.


Username fields are generally case insensitive.

how to check case sensitive password


密码字段通常区分大小写.这是什么问题?

无论哪种情况,如果您需要从一般角度出发,在比较时都需要注意.如果要使用不区分大小写的密码,请将其转换为toUpper或toLower并进行存储/比较.与用户名相同.


Password fields are generally case-sensitive. What is the issue here?

In either case, if you need to go other way from general, while comparing you need to take care. If you want case-insensitive passwords then convert it into toUpper or toLower and store it/compare it. Same with username.


这篇关于用户登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆