HUGE REFACTOR / CLEANUP
if there is a issue it's probably something in here that was changed
This commit is contained in:
@@ -62,10 +62,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
/* Xeslint-disable */
|
||||
export default {
|
||||
async created() {
|
||||
let searchParams = new URLSearchParams(window.location.search);
|
||||
const searchParams = new URLSearchParams(window.location.search);
|
||||
//home-reset?rc={ResetCode}&tr={EffectiveTranslationId}&lg={loginName}
|
||||
this.obj.passwordResetCode = searchParams.get("rc");
|
||||
this.obj.loginName = searchParams.get("lg");
|
||||
@@ -114,14 +113,11 @@ export default {
|
||||
}
|
||||
},
|
||||
async submit() {
|
||||
let vm = this;
|
||||
const vm = this;
|
||||
if (vm.canSave) {
|
||||
vm.formState.loading = true;
|
||||
|
||||
let url = "auth/reset-password";
|
||||
|
||||
try {
|
||||
let res = await window.$gz.api.upsert(url, {
|
||||
const res = await window.$gz.api.upsert("auth/reset-password", {
|
||||
PasswordResetCode: vm.obj.passwordResetCode,
|
||||
Password: vm.obj.confirmPassword
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user