Skip to content

Commit 8a24f9e

Browse files
authored
Merge branch 'master' into l10-fix
2 parents bc2d0d3 + 9f19904 commit 8a24f9e

File tree

4 files changed

+12
-19
lines changed

4 files changed

+12
-19
lines changed

README.md

+10-13
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,23 @@
22

33
#### Laravel Auth is a Complete Build of Laravel 10 with Email Registration Verification, Social Authentication, User Roles and Permissions, User Profiles, and Admin restricted user management system. Built on Bootstrap 4.
44

5-
[![Build Status](https://travis-ci.org/jeremykenedy/laravel-auth.svg?branch=master)](https://travis-ci.org/jeremykenedy/laravel-auth)
65
[![StyleCI](https://styleci.io/repos/44714043/shield?branch=master)](https://styleci.io/repos/44714043)
76
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/jeremykenedy/laravel-auth/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/jeremykenedy/laravel-auth/?branch=master)
87
[![Code Intelligence Status](https://scrutinizer-ci.com/g/jeremykenedy/laravel-auth/badges/code-intelligence.svg?b=master)](https://scrutinizer-ci.com/code-intelligence)
98
[![All Contributors](https://img.shields.io/badge/all_contributors-23-orange.svg?style=flat-square)](#contributors)
109
[![MadeWithLaravel.com shield](https://madewithlaravel.com/storage/repo-shields/1342-shield.svg)](https://madewithlaravel.com/p/laravel-auth/shield-link)
1110
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
1211

13-
### Sponsor
14-
15-
<table>
16-
<tr>
17-
<td>
18-
<img src="https://cdn.auth0.com/styleguide/components/1.0.8/media/logos/img/badge.png" alt="Auth0" width="50">
19-
</td>
20-
<td>
21-
If you want to quickly add secure token-based authentication to Laravel apps, feel free to check Auth0's Laravel SDK and free plan at <a href="https://auth0.com/developers?utm_source=GHsponsor&utm_medium=GHsponsor&utm_campaign=laravel-auth&utm_content=auth" target="_blank">https://auth0.com/developers</a>.
22-
</td>
23-
</tr>
24-
</table>
12+
[![Sponsor me on GitHub](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/jeremykenedy)
13+
[![Sponsor me on Patreon](https://img.shields.io/static/v1?label=patreon&message=%E2%9D%A4&logo=Patreon&color=F35B49&style=flat)](https://patreon.com/jeremykenedy)
14+
[![Buy me a Coffee](https://img.shields.io/badge/Buy_Me_A_Coffee-FFDD00?style=flat&logo=buy-me-a-coffee&logoColor=black)](https://www.buymeacoffee.com/jeremykenedy)
15+
[![Vultr](https://img.shields.io/badge/Vultr-007BFC.svg?style=flat&logo=vultr)](https://www.vultr.com/?ref=9338425-8H)
16+
[![GitHub Stars](https://img.shields.io/github/stars/jeremykenedy/laravel-auth?style=social)](https://github.com/jeremykenedy/laravel-auth/stargazers)
17+
[![Follow on GitHub](https://img.shields.io/github/followers/jeremykenedy?style=social)](https://github.com/jeremykenedy)
18+
[![Follow on Twitter](https://img.shields.io/twitter/follow/developernator?style=social&logo=twitter)](https://twitter.com/intent/follow?screen_name=developernator)
19+
20+
> This project costs me $22/month to be hosted on [Vultr](https://www.vultr.com/?ref=9338425-8H).<br>
21+
> Please consider [supporting my work](https://patreon.com/jeremykenedy) if you use & find it useful. ❤️
2522
2623
### Note
2724

app/Http/Controllers/Auth/ConfirmablePasswordController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function show(): View
2626
public function store(Request $request): RedirectResponse
2727
{
2828
if (! Auth::guard('web')->validate([
29-
'email' => $request->user()->email,
29+
'email' => $request->user()->email,
3030
'password' => $request->password,
3131
])) {
3232
throw ValidationException::withMessages([

app/Logic/Macros/HtmlMacros.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
* @return string
7474
*/
7575
HTML::macro('show_username', function () {
76-
$the_username = (Auth::user()->name === Auth::user()->email) ? ((is_null(Auth::user()->first_name)) ? (Auth::user()->name) : (Auth::user()->first_name)) : (((is_null(Auth::user()->name)) ? (Auth::user()->email) : (Auth::user()->name)));
76+
$the_username = (Auth::user()->name === Auth::user()->email) ? ((is_null(Auth::user()->first_name)) ? (Auth::user()->name) : (Auth::user()->first_name)) : ((is_null(Auth::user()->name)) ? (Auth::user()->email) : (Auth::user()->name));
7777

7878
return $the_username;
7979
});

routes/web.php

-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
// Public Routes
2929
Route::group(['middleware' => ['web', 'activity', 'checkblocked']], function () {
30-
3130
// Activation Routes
3231
Route::get('/activate', ['as' => 'activate', 'uses' => 'App\Http\Controllers\Auth\ActivateController@initial']);
3332

@@ -45,15 +44,13 @@
4544

4645
// Registered and Activated User Routes
4746
Route::group(['middleware' => ['auth', 'activated', 'activity', 'checkblocked']], function () {
48-
4947
// Activation Routes
5048
Route::get('/activation-required', ['uses' => 'App\Http\Controllers\Auth\ActivateController@activationRequired'])->name('activation-required');
5149
// Route::get('/logout', ['uses' => 'App\Http\Controllers\Auth\LoginController@logout'])->name('logout');
5250
});
5351

5452
// Registered and Activated User Routes
5553
Route::group(['middleware' => ['auth', 'activated', 'activity', 'twostep', 'checkblocked']], function () {
56-
5754
// Homepage Route - Redirect based on user role is in controller.
5855
Route::get('/home', [
5956
'as' => 'public.home',
@@ -70,7 +67,6 @@
7067

7168
// Registered, activated, and is current user routes.
7269
Route::group(['middleware' => ['auth', 'activated', 'currentUser', 'activity', 'twostep', 'checkblocked']], function () {
73-
7470
// User Profile and Account Routes
7571
Route::resource(
7672
'profile',

0 commit comments

Comments
 (0)