Skip to content

Commit 779e0f7

Browse files
Merge pull request #107 from OpenImaging/forgot-password
Redirect to the girder forgot password dialog
2 parents dd4308f + 27f122f commit 779e0f7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

client/src/views/Login.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script>
22
import { mapMutations, mapActions } from "vuex";
33
import { GirderAuthentication } from "@girder/components/src";
4+
import { GIRDER_URL } from "../constants";
45
56
export default {
67
name: "Login",
@@ -16,7 +17,10 @@ export default {
1617
},
1718
methods: {
1819
...mapMutations(["setCurrentUser", "setSessionStatus"]),
19-
...mapActions(["startLoginMonitor"])
20+
...mapActions(["startLoginMonitor"]),
21+
forgotPassword() {
22+
window.location.href = `${GIRDER_URL}#?dialog=resetpassword`;
23+
}
2024
},
2125
watch: {
2226
"girderRest.user"(user) {
@@ -34,7 +38,7 @@ export default {
3438
<template>
3539
<v-container>
3640
<v-dialog :value="userDialog" persistent max-width="500px">
37-
<GirderAuthentication :register="true" />
41+
<GirderAuthentication :register="true" @forgotpassword="forgotPassword" />
3842
</v-dialog>
3943
</v-container>
4044
</template>

0 commit comments

Comments
 (0)