Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

网络安全:让密码位数为6~32位 #155

Closed
lll123github opened this issue Jul 19, 2022 · 18 comments · Fixed by #173
Closed

网络安全:让密码位数为6~32位 #155

lll123github opened this issue Jul 19, 2022 · 18 comments · Fixed by #173
Assignees
Labels
enhancement New feature or request

Comments

@lll123github
Copy link
Collaborator

https://github.com/e-dialect/hinghwa-dict-uni-app/issues/22

@lll123github lll123github added the enhancement New feature or request label Jul 19, 2022
@lll123github
Copy link
Collaborator Author

@lll123github lll123github self-assigned this Aug 4, 2022
@lll123github
Copy link
Collaborator Author

lll123github commented Aug 4, 2022

image
image
问一下应当在这两处中的哪一个处进行修改呢

@lin594
Copy link
Member

lin594 commented Aug 4, 2022

第一处是不是已经是这个样子了?所以通过后台管理的确实最小是八位?(已经符合需求了)
那貌似只需要修改第二处即可?

修改第二处的话 可以参考一下一些新的写法 如 #151 #163 这样的

@lin594
Copy link
Member

lin594 commented Aug 4, 2022

不过第一处貌似对于最长长度没有进行验证,或许可以自己编辑一下

然后第二处是否有一些其他的方式直接引用第一处的验证呢?

@lll123github
Copy link
Collaborator Author

image
这个是django内的类

@lll123github
Copy link
Collaborator Author

个人是感觉要用的话是可以的,但是花的时间不会降低?

@lin594
Copy link
Member

lin594 commented Aug 4, 2022 via email

@lll123github
Copy link
Collaborator Author

我理解错了,我以为要引用那里边用的类

@lll123github
Copy link
Collaborator Author

然后另外自己再加一个上限

@lll123github lll123github changed the title 网络安全:让密码长度超过11位可以达到20位 网络安全:让密码长度超过11位可以达到32位(备注:最终确定位数:6~32位) Aug 4, 2022
@lll123github lll123github changed the title 网络安全:让密码长度超过11位可以达到32位(备注:最终确定位数:6~32位) 网络安全:让密码位数为6~32位 Aug 4, 2022
@lin594 lin594 linked a pull request Aug 26, 2022 that will close this issue
@lin594
Copy link
Member

lin594 commented Aug 26, 2022

@lll123github 达到你想要的效果了么?如果达到了的话,可以关闭这个 issue 了

@lll123github
Copy link
Collaborator Author

lll123github commented Aug 26, 2022

@FrogDar 我记起来还剩一个测试应该是测试他人更改密码(不成功)的测试,问一下这个测试的思路是什么呢

@lin594
Copy link
Member

lin594 commented Aug 26, 2022

这个感觉场景很奇怪哦,你想说的是什么场景?登着A的账号想去修改B的密码?

@lll123github
Copy link
Collaborator Author

@FrogDar (你当时不是就是这么说的x)

@lll123github
Copy link
Collaborator Author

我理解的你的意思是登着A的账号去修改B的密码,应该没问题?

@lin594
Copy link
Member

lin594 commented Aug 27, 2022

@FrogDar (你当时不是就是这么说的x)

我也不记得我当时是怎么说的了

@lin594
Copy link
Member

lin594 commented Aug 27, 2022

我理解的你的意思是登着A的账号去修改B的密码,应该没问题?

(不懂啊 此刻的我觉得这样不行、 但是无所谓吧.jpg)

@lll123github
Copy link
Collaborator Author

OK那就结束这个issue吧

@lll123github
Copy link
Collaborator Author

close #155

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants