code: function(email) {
        var user = this.getAuth();
        if (user) {
          return this._q.when(user.updateEmail(email));
        } else {
          return this._q.reject("Cannot update email since there is no logged in user.");
        }
      }
docs: Changes the email for an email/password user.
  
  @param {String} email The new email for the currently logged in user.
  @return {Promise<>} An empty promise fulfilled once the email change is complete.