17
common/resources/views/oauth/popup.blade.php
Executable file
17
common/resources/views/oauth/popup.blade.php
Executable file
@@ -0,0 +1,17 @@
|
||||
<h1 style="text-align: center">Logging in</h1>
|
||||
|
||||
<script>
|
||||
let status = "{!! $status !!}";
|
||||
let data = null;
|
||||
|
||||
@if(isset($data) && $data)
|
||||
@if(json_decode($data))
|
||||
data = {!! $data !!};
|
||||
@else
|
||||
data = '{!! $data !!}';
|
||||
@endif
|
||||
@endif
|
||||
|
||||
window.opener.postMessage({status: status, callbackData: data, type: 'social-auth'}, '*');
|
||||
window.close();
|
||||
</script>
|
||||
Reference in New Issue
Block a user