implemented social identities management page + pw editing page. probably need to fix backend

This commit is contained in:
2018-07-25 23:07:11 +02:00
parent 57911377ef
commit 2e075799f2
35 changed files with 541 additions and 301 deletions
+2 -1
View File
@@ -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);