-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from kingscode/update-scaffold
update scaffold with our latest standards
- Loading branch information
Showing
78 changed files
with
1,717 additions
and
1,039 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
21 changes: 0 additions & 21 deletions
21
generator/templates/Authorisation/src/api/endpoints/authorisation/password.js
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
generator/templates/Authorisation/src/api/endpoints/authorisation/password/forgotten.js
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { post } from '@/api/implementation/app'; | ||
|
||
export default function (email) { | ||
return post('password/forgotten', { | ||
email, | ||
}); | ||
} |
10 changes: 10 additions & 0 deletions
10
generator/templates/Authorisation/src/api/endpoints/authorisation/password/reset.js
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { post } from '@/api/implementation/app'; | ||
|
||
export default async function (email, token, password, passwordConfirmation) { | ||
return post('password/reset', { | ||
email, | ||
token, | ||
password, | ||
passwordConfirmation, | ||
}); | ||
} |
22 changes: 12 additions & 10 deletions
22
generator/templates/Authorisation/src/api/endpoints/authorisation/register.js
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
import { post } from '../../implementation/app'; | ||
|
||
function register(email, name) { | ||
return post('registration', { | ||
function verify(token, email, password, passwordConfirmation) { | ||
return post('registration/verify', { | ||
token, | ||
email, | ||
name, | ||
password, | ||
passwordConfirmation, | ||
}); | ||
} | ||
|
||
function verify(token, email, password, passwordConfirmation) { | ||
return post('registration/verify', { | ||
token: token, | ||
email: email, | ||
password: password, | ||
password_confirmation: passwordConfirmation, | ||
function acceptInvitation(email, token, password, passwordConfirmation) { | ||
return post('invitation/accept', { | ||
email, | ||
password, | ||
passwordConfirmation, | ||
token, | ||
}); | ||
} | ||
|
||
export { | ||
register, | ||
verify, | ||
acceptInvitation, | ||
}; |
This file contains 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
41 changes: 0 additions & 41 deletions
41
generator/templates/Authorisation/src/api/endpoints/user.js
This file was deleted.
Oops, something went wrong.
65 changes: 0 additions & 65 deletions
65
generator/templates/Authorisation/src/components/Authorisation/PasswordForgottenCard.vue
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.