mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
feat: pick username
* put new registered social login user to session data * ask to choose username * simplify checkUsername functions
This commit is contained in:
1 parent
5591689816
commit
182fcf643f
12 files changed
+244
-69
No files matched your search
@@ -1,5 +1,5 @@
|
||||
export default function authRequired(req, res, next) {
|
||||
if (req.isAuthenticated()) {
|
||||
if (req.isAuthenticated() && !req.session.newUser) {
|
||||
next()
|
||||
return
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user