Improved Github Oauth support and generic Oauth functionality

This commit is contained in:
Jan Oberhauser
2020-02-09 15:39:14 -08:00
parent ec68712f63
commit c1574a73ac
6 changed files with 104 additions and 49 deletions

View File

@@ -979,7 +979,7 @@ class App {
// Save the credentials in DB
await Db.collections.Credentials!.update(state.cid, newCredentialsData);
res.sendFile(pathResolve('../templates/oauth-callback.html'));
res.sendFile(pathResolve(__dirname, '../../templates/oauth-callback.html'));
});