-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from thedevdojo/facebookSocialAuthFix
fixing issues where facebook was not authenticating
- Loading branch information
Showing
6 changed files
with
109 additions
and
52 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
resources/views/components/elements/session-message.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!-- resources/views/components/auth/elements/session-message.blade.php --> | ||
@php | ||
$messageTypes = ['error', 'warning', 'success', 'info']; | ||
$message = null; | ||
$type = null; | ||
foreach ($messageTypes as $messageType) { | ||
if (session()->has($messageType)) { | ||
$message = session($messageType); | ||
$type = $messageType; | ||
break; | ||
} | ||
} | ||
@endphp | ||
|
||
@if($message) | ||
<div @class([ | ||
'mb-6 p-4 text-sm rounded-lg', | ||
'bg-red-100 text-red-700' => $type == 'error', | ||
'bg-orange-100 text-orange-700' => $type == 'warning', | ||
'bg-green-100 text-green-700' => $type == 'success', | ||
'bg-blue-100 text-blue-700' => $type == 'info', | ||
]) role="alert"> | ||
{{ $message }} | ||
</div> | ||
@endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters