all files / express-stormpath/lib/forms/ change-password-form.js

100% Statements 4/4
100% Branches 0/0
100% Functions 0/0
100% Lines 4/4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17                         
'use strict';
 
var forms = require('forms');
 
var fields = forms.fields;
var validators = forms.validators;
 
/**
 * A form which allows a user to change their password.
 *
 * @property changePasswordForm
 */
module.exports = forms.create({
  password: fields.password({ required: validators.required('Password is required.') }),
  passwordAgain: fields.password({ required: validators.required('Password is required.') })
});