mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 22:11:09 +03:00
Merge pull request #5306 from acburdine/remove-email
Removes "email" from settings
This commit is contained in:
commit
9d10e76fec
@ -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'),
|
||||
|
@ -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>
|
||||
|
@ -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'});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user