Skip to content

Commit

Permalink
Merge pull request #107 from OpenImaging/forgot-password
Browse files Browse the repository at this point in the history
Redirect to the girder forgot password dialog
  • Loading branch information
scottwittenburg authored May 10, 2021
2 parents dd4308f + 27f122f commit 779e0f7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/src/views/Login.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script>
import { mapMutations, mapActions } from "vuex";
import { GirderAuthentication } from "@girder/components/src";
import { GIRDER_URL } from "../constants";
export default {
name: "Login",
Expand All @@ -16,7 +17,10 @@ export default {
},
methods: {
...mapMutations(["setCurrentUser", "setSessionStatus"]),
...mapActions(["startLoginMonitor"])
...mapActions(["startLoginMonitor"]),
forgotPassword() {
window.location.href = `${GIRDER_URL}#?dialog=resetpassword`;
}
},
watch: {
"girderRest.user"(user) {
Expand All @@ -34,7 +38,7 @@ export default {
<template>
<v-container>
<v-dialog :value="userDialog" persistent max-width="500px">
<GirderAuthentication :register="true" />
<GirderAuthentication :register="true" @forgotpassword="forgotPassword" />
</v-dialog>
</v-container>
</template>

0 comments on commit 779e0f7

Please sign in to comment.