add loading-page for auth modal popup

parent e16b70b5
......@@ -130,8 +130,7 @@ class UserController extends Controller
}
Auth::login($user);
return redirect()->route('home');
//return redirect()->back();
return redirect()->route('loading');
}
public function loginApple() {
......@@ -147,7 +146,7 @@ class UserController extends Controller
}
Auth::login($user);
return redirect()->route('home');
return redirect()->route('loading');
}
}
......@@ -69,7 +69,9 @@ h6 {
/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
#preloader,
#loading
{
position: fixed;
top: 0;
left: 0;
......@@ -80,7 +82,9 @@ h6 {
background: #fff;
}
#preloader:before {
#preloader:before,
#loading:before
{
content: "";
position: fixed;
top: calc(50% - 30px);
......
......@@ -102,7 +102,6 @@
clearInterval(waitLoginInterval);
waitLoginInterval = setInterval(function(){
console.log('AAA 111');
try {
if (googleWin.location.href && googleWin.location.href != 'about:blank') {
clearInterval(waitLoginInterval);
......@@ -116,7 +115,6 @@
clearInterval(showModalInterval);
showModalInterval = setInterval(function(){
console.log('AAA 222');
if (!googleWin.window) {
clearInterval(waitLoginInterval);
clearInterval(showModalInterval);
......
@extends('layouts.layout')
@section('content')
<div id="loading"></div>
@endsection
\ No newline at end of file
......@@ -26,6 +26,10 @@ Route::get('/', function () {
return view('home');
}) -> name('home');
Route::get('/loading', function () {
return view('loading');
}) -> name('loading');
Route::group(['middleware' => 'guest'], function(){
Route::get('/register', [UserController::class, 'create']) -> name('register.create');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment