mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +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();
|
||||
|
13
backend/views/social/vk_error.pug
Normal file
13
backend/views/social/vk_error.pug
Normal file
|
@ -0,0 +1,13 @@
|
|||
doctype html
|
||||
html
|
||||
head
|
||||
title Ошибка авторизации
|
||||
link(rel='stylesheet', href='/stylesheets/social/vk.css')
|
||||
|
||||
body
|
||||
block content
|
||||
div#message
|
||||
div.bg
|
||||
h1=heading
|
||||
div=reason
|
||||
button(onclick='window.close()')=button
|
Loading…
Add table
Add a link
Reference in a new issue