Andrew Rodrigues
ddffc904f4
feat: allow file uploading on registration interstitial
2019-04-15 12:33:57 -04:00
Aziz Khoury
3fbb6faf28
feat: update unban logic/invocation and refactor User.bans module
...
* auto unban when User.getUsersFields is called and the user is banned but has expired
* cleanups and removal of expiry_readable
* expiry_readable make an alias for backward compatibility
* User.bans.func vs User.*ban*Func
* console.log cleanups, plus todo message added
* use code util.deprecate
* fix: remove ununsed winston require
2019-04-05 14:14:48 -04:00
Baris Usakli
fb58e23914
fix lint
2019-04-05 12:32:19 -04:00
Baris Usakli
e479fad792
fix : #7517
2019-04-05 11:57:55 -04:00
Barış Soner Uşaklı
abe4abb674
feat: add original sessionID to static:user.loggedOut
2019-04-02 16:23:09 -04:00
Barış Soner Uşaklı
4db0efe32d
fix : #7476
2019-04-02 15:25:40 -04:00
Andrew Rodrigues
240f563ab0
fix : #7477
2019-03-20 16:30:33 -04:00
Julian Lam
d2cfe6b946
Moved onSuccessfulLogin call from plugins to core, + auth verification hook ( #7416 )
...
* fix : #7412 , calling controllers.onSuccessfulLogin in core
* feat: added plugin hook for auth validation
2019-03-13 12:38:30 -04:00
Julian Lam
f972f75202
fix: incorrect returnTo set in registerComplete
2019-02-19 15:47:37 -05:00
Barış Soner Uşaklı
7064fd0678
fix : #7235
2019-01-24 15:14:12 -05:00
Julian Lam
63061ffd37
feat: new hook filter:user.logout
...
- used for setting "next" for post logout redirection
2019-01-24 12:04:44 -05:00
Julian Lam
b0eaa858b5
fix : #7169 Fixed logout being broken
2018-12-27 16:50:51 -05:00
Julian Lam
d81e0a5f5b
fix : #7146 Better RTL handling on (de-)authentication
...
- RTL is applied (or unapplied) on login and logout depending on
user language/guest-detected language.
- config is automatically saved into res.locals.config whenever
loadConfig is called
- On login/logout, buildHeader is called instead of getting config
- On logout, req.uid is deleted instead of set to 0
2018-12-21 11:49:11 -05:00
Julian Lam
900f0a0b78
fix : #7118 , invoking autoLocale middleware on logout
...
Also:
- firing client-side hook on header update
- updating bootbox locale on header update
2018-12-20 14:01:42 -05:00
Barış Soner Uşaklı
62f01a839e
fix: dont save data for non-positive uids
2018-12-14 00:09:15 -05:00
Julian Lam
5f3d1c76c8
fix : #7038 , autoLocale logic not playing nicely with no-refresh auths ( #7059 )
...
* fix : #7038 , autoLocale logic not playing nicely with no-refresh auths
- on login, req.query.lang is deleted (since it seems to be left over)
- on logout, the middleware.autoLocale is executed, which resets
req.query.lang
- middleware.autoLocale is new, just refactored existing logic in
webserver.js into new middleware method.
* style: tests, use lodash
* fix: timeago strings not switching languages on login or out
2018-12-07 11:29:20 -05:00
Julian Lam
84433f29ab
Do not require a full refresh on login/logout ( #6841 )
...
* no-refresh login as well, plus lots of fixes for missing config on login
* replace config with new set on logout as well
* passing new payload data into new action:app.loggedIn hook, and old action:app.loggedOut hook
* fixed issues with socket.io not properly representing uid on server
* some light refactoring and cleanup
* minor cleanup, fixed spa logout not working after login
* have reconnection handler for socket.io wait 2s to confirm disconnection before reporting -- stops flicker if reconnecting immediately
* Dynamically replace chat and slideout menu on updateHeader()
... instead of just the menu items.
* more efficient calls to Benchpress and translator /cc @pitaj
* fix: chats and notification handlers not working after login
* fix: accidentally calling cb multiple times
2018-11-07 12:34:12 -05:00
Julian Lam
157bea6966
fix: username trim on login, closes #6894
2018-10-30 17:09:32 -04:00
Barış Soner Uşaklı
66ed48e088
closes #6875
2018-10-27 06:23:24 -04:00
Barış Soner Uşaklı
9c022afae1
Parse int ( #6853 )
...
* Store config fields as JSON in the db
Fewer parseInts
* Remove unnecessary parseInts
* remove some dupe code add tests
* remove console.log
* remove more parseInts
* WIP: read meta.configs defaults from defaults.json
remove more parseInts
* more work
* add log for failing test
* update admin pwd
* fix tests, dont require posts/cache before configs are initialized
* handle saves
* Test boolean conditions
* remove more parseInts
* Fix boolean values
* remove lots more parseInts
* removed json parsing
* renamed var to number
* categories dont have timestamp
2018-10-21 16:47:51 -04:00
Barış Soner Uşaklı
26d4e0852f
use includes instead of indexOf
...
use _.uniq instead of filter&indexOf
2018-10-20 14:40:48 -04:00
Barış Soner Uşaklı
77beaf2e15
Allow local login,closes #6800 ( #6803 )
...
* WIP
* reset groups cache after every suite
2018-09-29 06:49:41 -04:00
Julian Lam
3c6c0ed7a1
restoring passwordExpiry for use in continueLogin, fixed tests, hopefully
2018-07-27 12:34:51 -04:00
Julian Lam
b6a5419ca1
closes #6674
2018-07-27 11:54:32 -04:00
Julian Lam
4f8815eb78
closes #6646
2018-07-26 16:38:40 -04:00
Julian Lam
44f8e6d3bb
Revert "closes #6483 "
...
This reverts commit 5d198491d5 .
2018-05-02 14:03:47 -04:00
Julian Lam
5d198491d5
closes #6483
2018-05-02 13:13:15 -04:00
Julian Lam
99f1a5380e
closes #6483
2018-05-02 13:02:18 -04:00
Julian Lam
c9d8fc3f58
one more minor fix to req.flash err
2018-05-01 15:25:11 -04:00
Julian Lam
4533a311e1
possible fix to req.flash err crash
2018-05-01 15:21:15 -04:00
Julian Lam
7089e5c6a6
Merge remote-tracking branch 'origin/master' into develop
2018-04-24 11:55:17 -04:00
Andrew Rodrigues
0971625e63
allow global mods to still login locally as well as admins if disabled in ACP
2018-04-18 17:59:38 -04:00
Julian Lam
e9ed7f0bb3
closes #6435
2018-04-06 10:16:26 -04:00
Barış Soner Uşaklı
ac1f7eefe5
closes #2304
2018-01-31 15:20:17 -05:00
Barış Soner Uşaklı
53afa552d0
closes #6162
2017-12-11 11:40:42 -05:00
Barış Soner Uşaklı
fd78eb6d57
closes #5533
2017-12-05 13:18:41 -05:00
Barış Soner Uşaklı
b7714179f6
removed unused dependency
2017-11-30 14:24:57 -05:00
Barış Soner Uşaklı
a7a3f3619b
dont allow login with invalid ip, escape ip display on user/info page
2017-11-30 14:24:17 -05:00
Barış Soner Uşaklı
662f92a4a8
supply callback to req.session.destroy
2017-11-02 18:21:25 -04:00
Baris Usakli
1358a89305
closes #5907
2017-09-01 18:40:34 -04:00
Barış Soner Uşaklı
5cc39e8546
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
...
# Conflicts:
# package.json
# src/views/admin/manage/ip-blacklist.tpl
2017-08-24 19:29:15 -04:00
Julian Lam
81cf8f77d3
add blacklist test to onSuccessfulLogin as well
2017-08-23 12:14:14 -04:00
Julian Lam
c4fbed24f8
Squashed commit of the following:
...
commit 9c86d9b2904e14927cd7e9679b92aec0951d1063
Merge: ebfa63a 5a7f811
Author: Julian Lam <julian@nodebb.org >
Date: Thu Jul 20 08:41:39 2017 -0400
Merge branch 'noscript-login' of https://github.com/An-dz/NodeBB into noscript
commit 5a7f81185e
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Mon Jul 17 23:07:14 2017 -0300
Rename clashing variable 'next'
commit ebfa63a984073a58c17aa408c363cdb03ef89985
Merge: c1801cd f159d0d
Author: Julian Lam <julian@nodebb.org >
Date: Mon Jul 17 16:30:40 2017 -0400
Merge branch 'noscript-logout' of https://github.com/An-dz/NodeBB into noscript
commit c1801cda14e6363491e30b659902e2ae71f7e1f7
Merge: 7a5f9f3 9fd542d
Author: Julian Lam <julian@nodebb.org >
Date: Mon Jul 17 16:30:31 2017 -0400
Merge branch 'noscript-register' of https://github.com/An-dz/NodeBB into noscript
commit 7a5f9f35abc834bb72ddddc9ca07d34f2fde8353
Merge: 44851f9 d37b95c
Author: Julian Lam <julian@nodebb.org >
Date: Mon Jul 17 16:30:10 2017 -0400
Merge branch 'noscript-compose' of https://github.com/An-dz/NodeBB into noscript
commit f159d0d9ef
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Thu Jul 6 12:16:38 2017 -0300
Prevent form submit
Required for theme change
commit d37b95cb71
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Thu Jul 6 01:49:52 2017 -0300
Prevent link action with scripts
Required for the theme change that changes the buttons to `a` tags.
commit 9fd542d897
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Wed Jul 5 19:57:56 2017 -0300
Fix tests
commit cdad5bf8c2
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Wed Jul 5 19:09:17 2017 -0300
Update error handling
commit 4ff11cd136
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Wed Jul 5 17:29:08 2017 -0300
Remove async waterfall
commit df01d44e82
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Wed Jul 5 16:59:43 2017 -0300
Set noscript compose as noscript at start
commit 4bcc380da7
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Wed Jul 5 16:59:12 2017 -0300
Remove last useless next
commit b5eac6fea1
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Sun Jul 2 18:35:08 2017 -0300
Last function requires no next
commit 20a5cce6e6
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Sun Jul 2 18:06:58 2017 -0300
Remove more useless next calls
commit 85ee22a79b
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Sun Jul 2 17:46:07 2017 -0300
Remove useless next calls
commit 7d984c47ad
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Sun Jul 2 15:45:31 2017 -0300
Support old themes
commit 4a09dfbd08
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Sun Jul 2 15:37:23 2017 -0300
Moved all error handling into helpers function
commit 391aa6e67e
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Thu Jun 8 15:37:37 2017 -0300
ESLint - Fix mixed conditionals
commit 80ccc6fd58
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Sat Jun 3 18:08:15 2017 -0300
Compose without scripts
commit 2aca811256
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Sat Jun 3 18:00:44 2017 -0300
Register without scripts
commit 097bb51577
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Sat Jun 3 16:42:15 2017 -0300
Logout without scripts
commit d497e08109
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Sat Jun 3 16:27:10 2017 -0300
Login without script
2017-07-20 08:51:04 -04:00
Peter Jaszkowiak
3c2d4fe649
Switch from underscore to lodash
2017-05-27 14:51:45 -06:00
Barış Soner Uşaklı
b29745aa44
more auth tests
2017-05-23 22:09:25 -04:00
Barış Soner Uşaklı
a8c649cca6
check data.uid
2017-05-23 17:41:40 -04:00
Barış Soner Uşaklı
e4714a0c58
more auth tests
2017-05-23 17:37:16 -04:00
Barış Soner Uşaklı
9625f89665
remove for loop
2017-05-23 15:53:38 -04:00
Barış Soner Uşaklı
1e83d33283
tests for login
2017-05-23 15:37:32 -04:00
Julian Lam
e938d75efc
closes #5676
2017-05-12 09:56:24 -04:00