Unverified Commit 97b55a4b by Sendya

refactor: login

parent 65da5511
...@@ -3,6 +3,7 @@ const api = { ...@@ -3,6 +3,7 @@ const api = {
Logout: '/auth/logout', Logout: '/auth/logout',
ForgePassword: '/auth/forge-password', ForgePassword: '/auth/forge-password',
Register: '/auth/register', Register: '/auth/register',
twoStepCode: '/auth/2step-code',
SendSms: '/account/sms', SendSms: '/account/sms',
SendSmsErr: '/account/sms_err', SendSmsErr: '/account/sms_err',
// get my info // get my info
......
...@@ -47,3 +47,15 @@ export function logout() { ...@@ -47,3 +47,15 @@ export function logout() {
} }
}) })
} }
/**
* get user 2step code open?
* @param parameter {*}
*/
export function get2step(parameter) {
return axios({
url: api.twoStepCode,
method: 'post',
data: parameter
})
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment