mirror of
https://github.com/outline/outline.git
synced 2026-12-03 01:59:03 +03:00
Update user slack data on login
This commit is contained in:
1 parent
69e1f2c663
commit
9defb24335
1 file changed
+1
@@ -42,6 +42,7 @@ router.post('auth.slack', async (ctx) => {
|
||||
|
||||
if (user) {
|
||||
user.slackAccessToken = data.access_token;
|
||||
user.slackData = data.user;
|
||||
user = await user.save();
|
||||
} else {
|
||||
// Existing user
|
||||
|
||||
Reference in new issue
Block a user