packages/fxa-content-server/app/scripts/models/form-prefill.js (9 lines of code) (raw):

/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ // A model to hold form pre-fill values. If a user enters an // email address and password in the sign in view, then goes to the // sign up view, the values they entered in on the sign in view // should automatically be filled in. // // These values are not persisted across browser sessions. import Backbone from 'backbone'; var FormPrefill = Backbone.Model.extend({ defaults: { age: null, email: null, password: null, }, }); export default FormPrefill;