now user can login

This commit is contained in:
muerwre 2018-08-28 16:58:36 +07:00
parent e7960a6bf8
commit e19001ca82
25 changed files with 493 additions and 32844 deletions

5
src/constants/api.js Normal file
View file

@ -0,0 +1,5 @@
export const SERVER = 'http://alpha-map.vault48.org';
export const API = {
COMPOSE: `${SERVER}/engine/composerOrchid.php`,
GET_GUEST: `${SERVER}/engine/auth.php`,
};

19
src/constants/auth.js Normal file
View file

@ -0,0 +1,19 @@
export const ROLES = {
guest: 'guest',
vk: 'vk',
};
export const DEFAULT_USER = {
new_messages: 0,
place_types: {},
random_url: '',
role: ROLES.guest,
routes: [],
success: false,
userdata: {
name: '',
agent: '',
ip: '',
photo: '',
}
};