Show contact email on error screen

This commit is contained in:
Hillel Coren 2017-03-13 19:25:29 +02:00
parent 36211b3ea9
commit 88bed420b1
2 changed files with 6 additions and 3 deletions

View File

@ -58,8 +58,7 @@ class Authenticate
if ($contact_key) {
$contact = $this->getContact($contact_key);
} elseif (! empty($request->invitation_key)) {
$invitation = $this->getInvitation($request->invitation_key);
} elseif ($invitation = $this->getInvitation($request->invitation_key)) {
$contact = $invitation->contact;
Session::put('contact_key', $contact->contact_key);
} else {
@ -104,6 +103,10 @@ class Authenticate
*/
protected function getInvitation($key)
{
if (! $key) {
return false;
}
// check for extra params at end of value (from website feature)
list($key) = explode('&', $key);

View File

@ -9,7 +9,7 @@
<div class="container" style="min-height:400px">
<h3>{{ trans('texts.error_title') }}...</h3>
<h4>{{ $error }}</h4>
<h4>{{ trans('texts.error_contact_text', ['mailaddress' => env('MAIL_USERNAME')]) }}</h4>
<h4>{{ trans('texts.error_contact_text', ['mailaddress' => env('CONTACT_EMAIL', env('MAIL_USERNAME'))]) }}</h4>
</div>
</div>