50 lines
1.5 KiB
JavaScript
50 lines
1.5 KiB
JavaScript
parasails.registerPage('forgot-password', {
|
|
// ╦╔╗╔╦╔╦╗╦╔═╗╦ ╔═╗╔╦╗╔═╗╔╦╗╔═╗
|
|
// ║║║║║ ║ ║╠═╣║ ╚═╗ ║ ╠═╣ ║ ║╣
|
|
// ╩╝╚╝╩ ╩ ╩╩ ╩╩═╝ ╚═╝ ╩ ╩ ╩ ╩ ╚═╝
|
|
data: {
|
|
// Main syncing/loading state for this page.
|
|
syncing: false,
|
|
|
|
// Form data
|
|
formData: { /* … */ },
|
|
|
|
// For tracking client-side validation errors in our form.
|
|
// > Has property set to `true` for each invalid property in `formData`.
|
|
formErrors: { /* … */ },
|
|
|
|
// Form rules
|
|
formRules: {
|
|
emailAddress: {required: true, isEmail: true},
|
|
},
|
|
|
|
// Server error state for the form
|
|
cloudError: '',
|
|
|
|
// Success state when form has been submitted
|
|
cloudSuccess: false,
|
|
},
|
|
|
|
// ╦ ╦╔═╗╔═╗╔═╗╦ ╦╔═╗╦ ╔═╗
|
|
// ║ ║╠╣ ║╣ ║ ╚╦╝║ ║ ║╣
|
|
// ╩═╝╩╚ ╚═╝╚═╝ ╩ ╚═╝╩═╝╚═╝
|
|
beforeMount: function() {
|
|
//…
|
|
},
|
|
mounted: async function() {
|
|
//…
|
|
},
|
|
|
|
// ╦╔╗╔╔╦╗╔═╗╦═╗╔═╗╔═╗╔╦╗╦╔═╗╔╗╔╔═╗
|
|
// ║║║║ ║ ║╣ ╠╦╝╠═╣║ ║ ║║ ║║║║╚═╗
|
|
// ╩╝╚╝ ╩ ╚═╝╩╚═╩ ╩╚═╝ ╩ ╩╚═╝╝╚╝╚═╝
|
|
methods: {
|
|
|
|
submittedForm: async function() {
|
|
// If it worked, show the success message.
|
|
this.cloudSuccess = true;
|
|
},
|
|
|
|
}
|
|
});
|