implemented social identities management page + pw editing page. probably need to fix backend
This commit is contained in:
@@ -20,7 +20,8 @@ class AppServiceProvider extends ServiceProvider
|
||||
}
|
||||
|
||||
\Route::bind('user', function ($value) {
|
||||
$u = User::where('name', $value)->first();
|
||||
// Hack to have the URL case insensitive (also needed a vendor patch for login)
|
||||
$u = User::whereRaw('LOWER(name)=LOWER(?)', [$value])->first();
|
||||
// it may also be the _id directly
|
||||
if (!$u && is_numeric($value)) $u = User::find((int)$value);
|
||||
if (!$u) abort(404);
|
||||
|
||||
Reference in New Issue
Block a user