autoformat to reduce merge conflicts
This commit is contained in:
@@ -13,7 +13,6 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// enforce admin via https
|
// enforce admin via https
|
||||||
if (!isset($_SERVER['HTTPS'])) {
|
if (!isset($_SERVER['HTTPS'])) {
|
||||||
header('Location: https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], true, 301);
|
header('Location: https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], true, 301);
|
||||||
@@ -99,14 +98,10 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
|||||||
$verify_url = $config["webroot"] . "/verify.php?t=" . $verify_token;
|
$verify_url = $config["webroot"] . "/verify.php?t=" . $verify_token;
|
||||||
require_once "../mail_templates.php";
|
require_once "../mail_templates.php";
|
||||||
$success = send_mail_pending_verification(
|
$success = send_mail_pending_verification(
|
||||||
$config["homeserver"],
|
$config["homeserver"], $storeFirstLastName ? $first_name . " " . $last_name : $username, $email, $verify_url);
|
||||||
$storeFirstLastName ? $first_name . " " . $last_name : $username,
|
|
||||||
$email,
|
|
||||||
$verify_url);
|
|
||||||
|
|
||||||
$mx_db->setRegistrationStateVerify(
|
$mx_db->setRegistrationStateVerify(
|
||||||
($success ? RegisterState::PendingEmailVerify : RegisterState::PendingEmailSend),
|
($success ? RegisterState::PendingEmailVerify : RegisterState::PendingEmailSend), $verify_token);
|
||||||
$verify_token);
|
|
||||||
|
|
||||||
print("<title>Erfolgreich</title>");
|
print("<title>Erfolgreich</title>");
|
||||||
print("</head><body>");
|
print("</head><body>");
|
||||||
|
|||||||
@@ -70,8 +70,7 @@ try {
|
|||||||
$message = $language["SEND_MATRIX_FAIL"];
|
$message = $language["SEND_MATRIX_FAIL"];
|
||||||
}
|
}
|
||||||
$mx_db->setRegistrationStateVerify(
|
$mx_db->setRegistrationStateVerify(
|
||||||
($response ? RegisterState::PendingAdminVerify : RegisterState::PendingAdminSend),
|
($response ? RegisterState::PendingAdminVerify : RegisterState::PendingAdminSend), $token);
|
||||||
$token);
|
|
||||||
|
|
||||||
send_mail_pending_approval($config["homeserver"], $first_name . " " . $last_name, $email);
|
send_mail_pending_approval($config["homeserver"], $first_name . " " . $last_name, $email);
|
||||||
|
|
||||||
|
|||||||
@@ -96,10 +96,7 @@ try {
|
|||||||
} elseif ($action == RegisterState::RegistrationDeclined) {
|
} elseif ($action == RegisterState::RegistrationDeclined) {
|
||||||
$mx_db->setRegistrationStateAdmin(RegisterState::RegistrationDeclined, $token);
|
$mx_db->setRegistrationStateAdmin(RegisterState::RegistrationDeclined, $token);
|
||||||
send_mail_registration_decline(
|
send_mail_registration_decline(
|
||||||
$config["homeserver"],
|
$config["homeserver"], strlen($first_name . $last_name) > 0 ? $first_name . " " . $last_name : $username, $email, $decline_reason
|
||||||
strlen($first_name . $last_name) > 0 ? $first_name . " " . $last_name : $username,
|
|
||||||
$email,
|
|
||||||
$decline_reason
|
|
||||||
);
|
);
|
||||||
print("<title>" . $language["ADMIN_VERIFY_SITE_TITLE"] . "</title>");
|
print("<title>" . $language["ADMIN_VERIFY_SITE_TITLE"] . "</title>");
|
||||||
print("</head><body>");
|
print("</head><body>");
|
||||||
@@ -137,7 +134,8 @@ background: rgba(255, 255, 255, 0.8);
|
|||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<form name="appForm" role="form" action="verify_admin.php" method="GET">
|
<form name="appForm" role="form" action="verify_admin.php" method="GET">
|
||||||
<?php if (isset($config["operationMode"]) && $config["operationMode"] === "local") {
|
<?php if (isset($config["operationMode"]) && $config["operationMode"] === "local") {
|
||||||
// this values will not be used when using the register operation type ?>
|
// this values will not be used when using the register operation type
|
||||||
|
?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-6 col-sm-6 col-md-6">
|
<div class="col-xs-6 col-sm-6 col-md-6">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|||||||
Reference in New Issue
Block a user