wip
This commit is contained in:
@ -74,7 +74,7 @@ class Config extends BedrockConfig {
|
||||
$html .= '<div class="mb-3 row">';
|
||||
$html .= '<h4 class="col-lg-3 col-form-label text-end">Current Value</h4>';
|
||||
$html .= '<div class="col-lg-6">';
|
||||
$html .= '<input type="text" class="form-control" name="'.$name.'Text" value="'.$node['value'] . '">';
|
||||
$html .= '<input type="text" class="form-control" name="'.$fieldname.'Text" value="'.$node['value'] . '">';
|
||||
$html .= '</div>';
|
||||
$html .= '</div>';
|
||||
$html .= '<div class="mb-3 row">';
|
||||
|
@ -164,7 +164,7 @@ class Email {
|
||||
}
|
||||
}
|
||||
$data->MAIL_FOOT = Views::simpleView( 'email.foot' );
|
||||
$data->MAIL_TITLE = self::$title;
|
||||
$data->MAIL_TITLE = Template::parse( self::$title );
|
||||
$data->MAIL_BODY = Template::parse( self::$message, $data );
|
||||
$subject = Template::parse( self::$subject, $data );
|
||||
$body = Views::simpleView( 'email.template', $data );
|
||||
|
@ -358,6 +358,10 @@ class Forms extends Check {
|
||||
self::addUserError( 'Invalid Email.' );
|
||||
return false;
|
||||
}
|
||||
if ( $user->usernameExists( Input::post( 'username' ) ) ) {
|
||||
self::addUserError( 'A user with that username is already registered.' );
|
||||
return false;
|
||||
}
|
||||
if ( !$user->noEmailExists( Input::post( 'email' ) ) ) {
|
||||
self::addUserError( 'A user with that email is already registered.' );
|
||||
return false;
|
||||
@ -374,7 +378,7 @@ class Forms extends Check {
|
||||
self::addUserError( 'You must agree to the terms of service.' );
|
||||
return false;
|
||||
}
|
||||
if ( !self::token() ) {
|
||||
if ( ! self::token() ) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user