mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
backend: login and logout
This commit is contained in:
parent
8bba2ff1ba
commit
032821329b
12 changed files with 166 additions and 41 deletions
17
backend/views/social/success.pug
Normal file
17
backend/views/social/success.pug
Normal file
|
@ -0,0 +1,17 @@
|
|||
doctype html
|
||||
html
|
||||
body
|
||||
script.
|
||||
window.opener.postMessage({
|
||||
type: 'oauth_login',
|
||||
user: {
|
||||
id: '#{_id}',
|
||||
token: '#{token}',
|
||||
name: '#{name}',
|
||||
photo: '#{photo}',
|
||||
role: '#{role}',
|
||||
}
|
||||
}, '*');
|
||||
|
||||
window.close();
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue