密码和确认密码相关 [英] password and cofirm password related

查看:106
本文介绍了密码和确认密码相关的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我从密码文本框中复制数据并将其粘贴到确认密码中,则它不能正常工作

解决方案

在密码框中键入密码时,密码是键入的,但用*字符掩盖了.从该textbox 复制时,剪贴板只能复制*s,而不能复制实际密码.因此,当您粘贴重新输入textbox 时,您实际上是在粘贴*s而不是实际的密码.

出于安全原因就是这种情况,想象一下您可以从textbox 复制被屏蔽的密码并将其粘贴到notepad的情况,然后您将能够看到真实的密码.这样做实际上会破坏首先掩盖密码的目的.


我认为您是在粘贴一些空格之后才能正确地对其进行检查


if I copy the data from password text box and paste it in confirm password then it''s not working fine
mean password and confirm password fields are mismatching y?

解决方案

When you type password in password box the password is types but masked with * character. when you copy from that textbox the clipboard is able to copy only *s and not the actual password. so when you paste in re enter textbox you are actually pasting *s and not the actual password.

this is the case for security reasons, imagine a scenario where you could copy a masked password from a textbox and paste it in a notepad, you will then be able to see the real password . This would actually defeat the purpose of masking the password in the first place.


I think you are pasting after some space,can you check it properly


这篇关于密码和确认密码相关的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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