Open
Conversation
Member
|
登录相关的操作,不能直接走 Typecho 原生的登录接口么? 登录属于高危功能,插件来实现能否和原生的登录逻辑完全同构?如果不能的话,是有安全风险的,而且上游变更可能就不兼容了。 |
Author
使用的是typecho自带的Login hook实现的用户登录 不涉及对登录逻辑的修改 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
添加新的api接口:用户登录接口
设置了最多尝试失败设定和封禁时间
密码使用加密传输方法防止重放攻击和中间人攻击