Skip to content

Commit

Permalink
feat(register): Added email to register
Browse files Browse the repository at this point in the history
  • Loading branch information
Halceyon committed May 14, 2019
1 parent 7292b69 commit b7f0fd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/AspnetAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@ class AspnetAuth {
return axios;
}

register(username, password) {
register(username, email, password) {
// strange quirk where the baseURL is not persisted
axios.defaults.baseURL = this.options.url;
return this.http.post('/api/account/register', {
Username: username,
Password: password,
Email: email,
});
}

Expand Down

0 comments on commit b7f0fd1

Please sign in to comment.