Skip to content

A free open source IT asset/license management system

Nicer formatting of the page if custom logout [ch15660]

snipe49415806e152
diff --git a/resources/lang/en/auth/general.php b/resources/lang/en/auth/general.php
index 33630310d4..78b6780927 100644
--- a/resources/lang/en/auth/general.php
+++ b/resources/lang/en/auth/general.php
@@ -8,6 +8,7 @@ return [
'login' => 'Login',
'login_prompt' => 'Please Login',
'forgot_password' => 'I forgot my password',
+ 'ldap_reset_password' => 'Please click here to reset your LDAP password',
'remember_me' => 'Remember Me',
'username_help_top' => 'Enter your <strong>username</strong> to be emailed a password reset link.',
'username_help_bottom' => 'Your username and email address <em>may</em> be the same, but may not be, depending on your configuration. If you cannot remember your username, contact your administrator. <br><br><strong>Usernames without an associated email address will not be emailed a password reset link.</strong> ',
diff --git a/resources/views/auth/passwords/email.blade.php b/resources/views/auth/passwords/email.blade.php
index 9b78ba9fd3..8e2f6560a2 100644
--- a/resources/views/auth/passwords/email.blade.php
+++ b/resources/views/auth/passwords/email.blade.php
@@ -4,12 +4,22 @@
{{-- Page content --}}
@section('content')
+
@if ($snipeSettings->custom_forgot_pass_url)
- <a href="{{ $snipeSettings->custom_forgot_pass_url }}" rel="noopener">
- {{ trans('auth/general.forgot_password') }}
- </a>
+ <!-- The admin settings specify an LDAP password reset URL to let's send them there -->
+ <div class="col-md-4 col-md-offset-4" style="margin-top: 20px;">
+ <div class="box box-header text-center">
+ <h3 class="box-title">
+ <a href="{{ $snipeSettings->custom_forgot_pass_url }}" rel="noopener">
+ {{ trans('auth/general.ldap_reset_password') }}
+ </a>
+ </h3>
+ </div>
+ </div>
+
@else
+
<form class="form" role="form" method="POST" action="{{ url('/password/email') }}">
{!! csrf_field() !!}
<div class="container">