fixed logout
このコミットが含まれているのは:
コミット
d8690c41a0
|
@ -27461,12 +27461,12 @@ var AdminLogin = function AdminLogin() {
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
var loginOK = function loginOK(id) {
|
var loginOK = function loginOK(id) {
|
||||||
var admin_token = {
|
var token = {
|
||||||
type: 'admin',
|
type: 'admin',
|
||||||
id: id,
|
id: id,
|
||||||
from_login: true
|
from_login: true
|
||||||
};
|
};
|
||||||
localStorage.setItem('admin_token', JSON.stringify(admin_token));
|
localStorage.setItem('admin_token', JSON.stringify(token));
|
||||||
if (location.search == '') window.location.href = "/admin/meeting";else window.location.href = location.search.replace('?redirect_to=', '');
|
if (location.search == '') window.location.href = "/admin/meeting";else window.location.href = location.search.replace('?redirect_to=', '');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -30410,6 +30410,7 @@ function AdminSide() {
|
||||||
|
|
||||||
var handleLogout = function handleLogout() {
|
var handleLogout = function handleLogout() {
|
||||||
axios.get('/admin/logout').then(function () {
|
axios.get('/admin/logout').then(function () {
|
||||||
|
localStorage.removeItem('admin_token');
|
||||||
window.location.href = '/admin/login';
|
window.location.href = '/admin/login';
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -31016,13 +31017,13 @@ var ChildLogin = function ChildLogin() {
|
||||||
|
|
||||||
var loginOK = function loginOK() {
|
var loginOK = function loginOK() {
|
||||||
var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
||||||
var c_account_token = {
|
var token = {
|
||||||
type: 'c-account',
|
type: 'c-account',
|
||||||
id: id,
|
id: id,
|
||||||
notice: 0,
|
notice: 0,
|
||||||
from_login: true
|
from_login: true
|
||||||
};
|
};
|
||||||
localStorage.setItem('c_account_token', JSON.stringify(c_account_token));
|
localStorage.setItem('c-account_token', JSON.stringify(token));
|
||||||
if (location.search == '') window.location.href = "/c-account/meeting";else window.location.href = location.search.replace('?redirect_to=', '');
|
if (location.search == '') window.location.href = "/c-account/meeting";else window.location.href = location.search.replace('?redirect_to=', '');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -33469,6 +33470,7 @@ var ChildProfileDetail = function ChildProfileDetail() {
|
||||||
|
|
||||||
var handleLogout = function handleLogout() {
|
var handleLogout = function handleLogout() {
|
||||||
axios.get('/c-account/logout').then(function () {
|
axios.get('/c-account/logout').then(function () {
|
||||||
|
localStorage.removeItem('c-account_token');
|
||||||
window.location.href = '/c-account/login';
|
window.location.href = '/c-account/login';
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -34573,6 +34575,7 @@ function ChildSide() {
|
||||||
|
|
||||||
var handleLogout = function handleLogout() {
|
var handleLogout = function handleLogout() {
|
||||||
axios.get('/c-account/logout').then(function () {
|
axios.get('/c-account/logout').then(function () {
|
||||||
|
localStorage.removeItem('c-account_token');
|
||||||
window.location.href = '/c-account/login';
|
window.location.href = '/c-account/login';
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -37559,13 +37562,13 @@ var ParentLogin = function ParentLogin() {
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
var loginOK = function loginOK(id) {
|
var loginOK = function loginOK(id) {
|
||||||
var p_account_token = {
|
var token = {
|
||||||
type: 'p-account',
|
type: 'p-account',
|
||||||
id: id,
|
id: id,
|
||||||
notice: 0,
|
notice: 0,
|
||||||
from_login: true
|
from_login: true
|
||||||
};
|
};
|
||||||
localStorage.setItem('p_account_token', JSON.stringify(p_account_token));
|
localStorage.setItem('p-account_token', JSON.stringify(token));
|
||||||
if (location.search == '') window.location.href = "/p-account/meeting";else window.location.href = location.search.replace('?redirect_to=', '');
|
if (location.search == '') window.location.href = "/p-account/meeting";else window.location.href = location.search.replace('?redirect_to=', '');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -42705,6 +42708,7 @@ var ParentProfileDetail = function ParentProfileDetail() {
|
||||||
|
|
||||||
var handleLogout = function handleLogout() {
|
var handleLogout = function handleLogout() {
|
||||||
axios.get('/p-account/logout').then(function () {
|
axios.get('/p-account/logout').then(function () {
|
||||||
|
localStorage.removeItem('p-account_token');
|
||||||
window.location.href = '/p-account/login';
|
window.location.href = '/p-account/login';
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -43921,6 +43925,7 @@ function ParentSide() {
|
||||||
|
|
||||||
var handleLogout = function handleLogout() {
|
var handleLogout = function handleLogout() {
|
||||||
axios.get('/p-account/logout').then(function () {
|
axios.get('/p-account/logout').then(function () {
|
||||||
|
localStorage.removeItem('p-account_token');
|
||||||
window.location.href = '/p-account/login';
|
window.location.href = '/p-account/login';
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -41,12 +41,12 @@ const AdminLogin = () => {
|
||||||
|
|
||||||
|
|
||||||
const loginOK = (id) => {
|
const loginOK = (id) => {
|
||||||
let admin_token = {
|
let token = {
|
||||||
type: 'admin',
|
type: 'admin',
|
||||||
id: id,
|
id: id,
|
||||||
from_login: true
|
from_login: true
|
||||||
};
|
};
|
||||||
localStorage.setItem('admin_token', JSON.stringify(admin_token));
|
localStorage.setItem('admin_token', JSON.stringify(token));
|
||||||
|
|
||||||
if(location.search == '')
|
if(location.search == '')
|
||||||
window.location.href = "/admin/meeting";
|
window.location.href = "/admin/meeting";
|
||||||
|
|
|
@ -7,6 +7,7 @@ export default function AdminSide() {
|
||||||
const handleLogout = () => {
|
const handleLogout = () => {
|
||||||
axios.get('/admin/logout')
|
axios.get('/admin/logout')
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
localStorage.removeItem('admin_token');
|
||||||
window.location.href = '/admin/login';
|
window.location.href = '/admin/login';
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,13 +40,13 @@ const ChildLogin = () => {
|
||||||
|
|
||||||
|
|
||||||
const loginOK = (id = 0) =>{
|
const loginOK = (id = 0) =>{
|
||||||
let c_account_token = {
|
let token = {
|
||||||
type: 'c-account',
|
type: 'c-account',
|
||||||
id: id,
|
id: id,
|
||||||
notice: 0,
|
notice: 0,
|
||||||
from_login: true
|
from_login: true
|
||||||
};
|
};
|
||||||
localStorage.setItem('c_account_token', JSON.stringify(c_account_token));
|
localStorage.setItem('c-account_token', JSON.stringify(token));
|
||||||
|
|
||||||
if(location.search == '')
|
if(location.search == '')
|
||||||
window.location.href = "/c-account/meeting";
|
window.location.href = "/c-account/meeting";
|
||||||
|
|
|
@ -68,6 +68,7 @@ const ChildProfileDetail = () => {
|
||||||
const handleLogout = () => {
|
const handleLogout = () => {
|
||||||
axios.get('/c-account/logout')
|
axios.get('/c-account/logout')
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
localStorage.removeItem('c-account_token');
|
||||||
window.location.href = '/c-account/login';
|
window.location.href = '/c-account/login';
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,7 @@ export default function ChildSide() {
|
||||||
const handleLogout = () => {
|
const handleLogout = () => {
|
||||||
axios.get('/c-account/logout')
|
axios.get('/c-account/logout')
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
localStorage.removeItem('c-account_token');
|
||||||
window.location.href = '/c-account/login';
|
window.location.href = '/c-account/login';
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,13 +42,13 @@ const ParentLogin = () => {
|
||||||
|
|
||||||
|
|
||||||
const loginOK = (id) =>{
|
const loginOK = (id) =>{
|
||||||
let p_account_token = {
|
let token = {
|
||||||
type: 'p-account',
|
type: 'p-account',
|
||||||
id: id,
|
id: id,
|
||||||
notice: 0,
|
notice: 0,
|
||||||
from_login: true
|
from_login: true
|
||||||
};
|
};
|
||||||
localStorage.setItem('p_account_token', JSON.stringify(p_account_token));
|
localStorage.setItem('p-account_token', JSON.stringify(token));
|
||||||
|
|
||||||
if(location.search == '')
|
if(location.search == '')
|
||||||
window.location.href = "/p-account/meeting";
|
window.location.href = "/p-account/meeting";
|
||||||
|
|
|
@ -67,6 +67,7 @@ const ParentProfileDetail = () => {
|
||||||
const handleLogout = () => {
|
const handleLogout = () => {
|
||||||
axios.get('/p-account/logout')
|
axios.get('/p-account/logout')
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
localStorage.removeItem('p-account_token');
|
||||||
window.location.href = '/p-account/login';
|
window.location.href = '/p-account/login';
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,7 @@ export default function ParentSide() {
|
||||||
const handleLogout = () => {
|
const handleLogout = () => {
|
||||||
axios.get('/p-account/logout')
|
axios.get('/p-account/logout')
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
localStorage.removeItem('p-account_token');
|
||||||
window.location.href = '/p-account/login';
|
window.location.href = '/p-account/login';
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
新しいイシューから参照