Merge pull request #5306 from acburdine/remove-email

Removes "email" from settings
This commit is contained in:
Hannah Wolfe 2015-06-02 09:44:21 +01:00
commit 9d10e76fec
3 changed files with 0 additions and 11 deletions

View File

@ -6,7 +6,6 @@ var Setting = DS.Model.extend(ValidationEngine, {
title: DS.attr('string'),
description: DS.attr('string'),
email: DS.attr('string'),
logo: DS.attr('string'),
cover: DS.attr('string'),
defaultLang: DS.attr('string'),

View File

@ -47,11 +47,6 @@
</div>
<fieldset>
<div class="form-group">
<label for="email-address">Email Address</label>
{{input id="email-address" class="gh-input" name="general[email-address]" type="email" value=model.email autocapitalize="off" autocorrect="off"}}
<p>Address to use for admin notifications</p>
</div>
<div class="form-group">
<label for="postsPerPage">Posts per page</label>

View File

@ -4,7 +4,6 @@ var SettingValidator = Ember.Object.create({
var validationErrors = [],
title = model.get('title'),
description = model.get('description'),
email = model.get('email'),
postsPerPage = model.get('postsPerPage'),
isPrivate = model.get('isPrivate'),
password = model.get('password');
@ -17,10 +16,6 @@ var SettingValidator = Ember.Object.create({
validationErrors.push({message: 'Description is too long'});
}
if (!validator.isEmail(email) || !validator.isLength(email, 0, 254)) {
validationErrors.push({message: 'Supply a valid email address'});
}
if (isPrivate && password === '') {
validationErrors.push({message: 'Password must be supplied'});
}