feat(auth): add user profile and password changing #966
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.
closes #922
related to #942 #840 #279
This PR includes the following:
artalk-auth-plugin
.POST /user/profile
HTTP API, allowing logged-in users to edit their profiles, including username, email, and website (also known as a link).code
parameter for verifying the new email (which must be obtained by first callingPOST /auth/email/send
to send a verification code to the email).POST /auth/email/register
API, which includes the functionality for password change (also known as password reset or forgotten password).POST /auth/email/send
to send a verification code to the email.zh-CN
artalk-auth-plugin
增加 个人资料和密码修改对话框界面POST /user/profile
的 HTTP API,允许已登录的用户对个人资料进行编辑,包括 用户名、邮箱、链接(又名website)。POST /auth/email/send
向邮箱发送验证码)POST /auth/email/register
接口,该接口包含用户密码修改功能(又称密码重置、忘记密码)POST /auth/email/send
向邮箱发送验证码