注册功能、数据库表关系大更新

This commit is contained in:
橙子
2021-11-06 17:10:44 +08:00
parent 8b3339c81d
commit 1066e54369
28 changed files with 361 additions and 947 deletions

View File

@@ -16,11 +16,11 @@ export default {
method: 'post',
})
},
register(username, password, email, code) {
register(username, password, phone, code) {
return myaxios({
url: `/Account/register?code=${code}`,
method: 'post',
data: { username, password, email }
data: { username, password, phone }
})
},
email(emailAddress) {
@@ -29,6 +29,12 @@ export default {
method: 'post',
})
},
SendSMS(smsAddress) {
return myaxios({
url: `/Account/SendSMS?SMSAddress=${smsAddress}`,
method: 'post',
})
},
changePassword(user, newPassword) {
return myaxios({
url: `/Account/changePassword`,