weitere Bearibeitung
This commit is contained in:
@@ -31,9 +31,9 @@ $token = trim((string) ($token ?? old('token')));
|
||||
$resetToken = isset($resetToken) && is_array($resetToken) ? $resetToken : null;
|
||||
$hasValidResetToken = $resetToken !== null;
|
||||
$loginUrl = $scope === 'tenant'
|
||||
? ($tenantSlug !== '' ? tenant_url($tenantSlug, 'login') : '/')
|
||||
: '/admin/login';
|
||||
$requestUrl = '/password/forgot?scope=' . rawurlencode($scope);
|
||||
? ($tenantSlug !== '' ? tenant_url($tenantSlug, 'login') : url('/'))
|
||||
: url('/admin/login');
|
||||
$requestUrl = url('/password/forgot?scope=' . rawurlencode($scope));
|
||||
|
||||
if ($scope === 'tenant' && $tenantSlug !== '') {
|
||||
$requestUrl .= '&tenantSlug=' . rawurlencode($tenantSlug);
|
||||
@@ -63,7 +63,7 @@ require __DIR__ . '/../partials/layout-top.php';
|
||||
|
||||
<div class="two-column">
|
||||
<?php if ($hasValidResetToken): ?>
|
||||
<form class="card form-card" method="post" action="<?= e(current_path()) ?>">
|
||||
<form class="card form-card" method="post" action="<?= e(url(current_path())) ?>">
|
||||
<?= csrf_field($csrf) ?>
|
||||
<input type="hidden" name="scope" value="<?= e($scope) ?>">
|
||||
<?php if ($tenantSlug !== ''): ?>
|
||||
|
||||
@@ -28,8 +28,8 @@ if ($tenantName === '') {
|
||||
}
|
||||
|
||||
$loginUrl = $scope === 'tenant'
|
||||
? ($tenantSlug !== '' ? tenant_url($tenantSlug, 'login') : '/')
|
||||
: '/admin/login';
|
||||
? ($tenantSlug !== '' ? tenant_url($tenantSlug, 'login') : url('/'))
|
||||
: url('/admin/login');
|
||||
$emailLabel = $scope === 'tenant' ? 'Login-E-Mail' : 'Admin-E-Mail';
|
||||
require __DIR__ . '/../partials/layout-top.php';
|
||||
?>
|
||||
@@ -46,7 +46,7 @@ require __DIR__ . '/../partials/layout-top.php';
|
||||
</section>
|
||||
|
||||
<div class="two-column">
|
||||
<form class="card form-card" method="post" action="<?= e(current_path()) ?>">
|
||||
<form class="card form-card" method="post" action="<?= e(url(current_path())) ?>">
|
||||
<?= csrf_field($csrf) ?>
|
||||
<input type="hidden" name="scope" value="<?= e($scope) ?>">
|
||||
<?php if ($tenantSlug !== ''): ?>
|
||||
|
||||
Reference in New Issue
Block a user