Skip to content

Commit c43efd0

Browse files
fix pr comments
1 parent c9ae5c8 commit c43efd0

6 files changed

Lines changed: 7 additions & 30 deletions

File tree

generator/templates/Authorisation/src/api/endpoints/authorisation/password.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

generator/templates/Authorisation/src/api/endpoints/authorisation/password/reset.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ export default async function (email, token, password, passwordConfirmation) {
55
email,
66
token,
77
password,
8-
password_confirmation: passwordConfirmation,
8+
passwordConfirmation,
99
});
1010
}

generator/templates/Authorisation/src/api/endpoints/authorisation/register.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ function verify(token, email, password, passwordConfirmation) {
55
token,
66
email,
77
password,
8-
password_confirmation: passwordConfirmation,
8+
passwordConfirmation,
99
});
1010
}
1111

1212
function acceptInvitation(email, token, password, passwordConfirmation) {
1313
return post('invitation/accept', {
1414
email: email,
1515
password: password,
16-
password_confirmation: passwordConfirmation,
16+
passwordConfirmation,
1717
token: token,
1818
});
1919
}

generator/templates/Authorisation/src/views/authorisation/RegistrationVerify.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ export default {
8080
onFormSubmit() {
8181
const token = getFragment('token');
8282
83-
// TODO: what to do?
8483
if (!token) return;
8584
8685
this.isLoading = true;
@@ -100,7 +99,7 @@ export default {
10099
} else if (status === 400) {
101100
this.alertMessage = this.$t('authorisation.registrationVerify.errorMessage');
102101
}
103-
this.validate();
102+
this.$refs.form.validate();
104103
})
105104
.finally(() => {
106105
this.isLoading = false;

generator/templates/Default/src/api/implementation/app/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ const instance = axios.create(config);
3131
instance.interceptors.request.use(onRequestFulFilled, onRequestRejected);
3232
instance.interceptors.response.use(onResponseFulFilled, onResponseRejected);
3333

34-
const { get } = instance;
35-
const { post } = instance;
34+
const { get, post, put } = instance;
3635
const destroy = instance.delete;
37-
const { put } = instance;
36+
3837

3938
export {
4039
get,

generator/templates/Default/src/api/implementation/app/transformer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Qs from 'qs';
2-
import Model from '../../../application/models/model';
2+
import Model from '@/application/models/model';
33
import { camelToSnake, snakeToCamel } from '../../util/keyConverter';
44
import objectToFormData from '../../util/objectToFormDataConverter';
55

0 commit comments

Comments
 (0)