mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
(bugfixes)
This commit is contained in:
parent
3d718b5a2c
commit
b8431abeeb
13 changed files with 1228 additions and 1057 deletions
|
@ -19,9 +19,7 @@ const fetchUserData = async (req, res) => {
|
|||
redirect_uri: `${proto}://${host}/auth/social/vk`,
|
||||
}
|
||||
}
|
||||
).catch(err => {
|
||||
console.log('[SOCIAL] error:', err);
|
||||
|
||||
).catch(() => {
|
||||
return res.render('social/vk_error', {
|
||||
title: STRINGS.OAUTH.ERROR_TITLE,
|
||||
heading: STRINGS.OAUTH.ERROR_HEADING,
|
||||
|
@ -40,9 +38,7 @@ const fetchUserData = async (req, res) => {
|
|||
access_token,
|
||||
}
|
||||
}
|
||||
).catch(err => {
|
||||
console.log('[SOCIAL] error:', err);
|
||||
|
||||
).catch(() => {
|
||||
return res.render('social/vk_error', {
|
||||
title: STRINGS.OAUTH.ERROR_TITLE,
|
||||
heading: STRINGS.OAUTH.ERROR_HEADING,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue