backend: login and logout

This commit is contained in:
muerwre 2018-11-30 10:50:37 +07:00
parent 8bba2ff1ba
commit 032821329b
12 changed files with 166 additions and 41 deletions

View 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();

View 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