geer-builder 1.2.943 → 1.2.944
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/GChangePassword.vue +5 -2
- package/package.json +1 -1
package/GChangePassword.vue
CHANGED
|
@@ -75,8 +75,9 @@
|
|
|
75
75
|
</template>
|
|
76
76
|
<script>
|
|
77
77
|
import GlobalMixins from './mixins/global_mixins.js';
|
|
78
|
-
import GCard from './components/GCard'
|
|
79
|
-
import GHeader from './components/GHeader'
|
|
78
|
+
import GCard from './components/GCard'
|
|
79
|
+
import GHeader from './components/GHeader'
|
|
80
|
+
import { AUTH } from './boot/firebase'
|
|
80
81
|
|
|
81
82
|
export default {
|
|
82
83
|
|
|
@@ -105,6 +106,8 @@ export default {
|
|
|
105
106
|
{
|
|
106
107
|
this.$q.loading.show()
|
|
107
108
|
await this.$_fbCall('memberChangePassword', this.fields);
|
|
109
|
+
// Re-authenticate to prevent logout (Firebase revokes tokens on password change)
|
|
110
|
+
await AUTH.signInWithEmailAndPassword(this.user_info.email, this.fields.new_password);
|
|
108
111
|
this.$q.loading.hide()
|
|
109
112
|
this.$q.dialog({ title: "Success!", message: `Password has been successfully changed.` });
|
|
110
113
|
this.is_change_password_dialog_open = false;
|