Rohan Sircar
bf195efea7
minor change to user service impl
5 years ago
Rohan Sircar
796d4ae032
cleanup up main class
5 years ago
Rohan Sircar
87783f2463
admin menu now shows actual username instead of dummy name
5 years ago
Rohan Sircar
e2e2428410
removed unneeded idb init code and moved sessions reset query to query.prop
5 years ago
Rohan Sircar
0ecfda9980
db init service now uses hibernate connection instead of separate connection. Also, user sessions are now reset using jdbc as well
5 years ago
Rohan Sircar
bee90dcef0
added logging to initializer service
5 years ago
Rohan Sircar
f72f1b76fe
cleaned up dbinitializerservice
5 years ago
Rohan Sircar
80c7c18881
Token is delete and evicted from cache when num sessions hits 0. Also cleaned up loggeduser and added some logging
5 years ago
Rohan Sircar
ed82bea521
Implemented token usage in front end and removed password storage
Token and username are stored in localstorage and cleared on logout.
5 years ago
Rohan Sircar
1d36c317cf
reduced token cache duration to 10 minutes
5 years ago
Rohan Sircar
9a922cf5b9
added cacheevict
5 years ago
Rohan Sircar
4c11415d9c
removed old commented beanfilter code
5 years ago
Rohan Sircar
eb7b2ab6d7
added further logging to tokenauthfilter
5 years ago
Rohan Sircar
b0e67cc416
added exception handling to tokenauthfilter
5 years ago
Rohan Sircar
8a339ddf83
Implemented token expiry
Token expiry can be set from properties file
Also changed tokenauthfiter from genericfilterbean to
onceperrequestfiter
5 years ago
Rohan Sircar
25f55a6262
some optimizations
5 years ago
Rohan Sircar
130525738a
more refactoring and token is now deleted from database on logout
5 years ago
Rohan Sircar
5e80815e53
changed user token cache expiry to 1 minute
5 years ago
Rohan Sircar
0ca1c47011
further cleanup and added get by token string in usertokenservice
5 years ago
Rohan Sircar
deaefaf866
cleaned up the code a bit
5 years ago
Rohan Sircar
264bc9efde
switched to beanutil to get beans outside spring handled classes
5 years ago
Rohan Sircar
1ecbc91e0e
transferred token auth files
5 years ago
Rohan Sircar
a91a142685
changed usersession fetchtype to lazy
5 years ago
Rohan Sircar
84c2c7c245
csrf is enabled again
5 years ago
Rohan Sircar
f06bf516dd
chat page now uses classname instead of queryselector to extract user name
5 years ago
Rohan Sircar
4d10e172cc
left out deleted file by mistake
5 years ago
Rohan Sircar
9140885398
updated schema initilization script and switched back to jdbc based initialization
5 years ago
Rohan Sircar
5a79c7026e
application now resets online flag and num_sessions to 0 on startup
5 years ago
Rohan Sircar
2564fdca35
Switched to persistent storage of active users. This solves the issue of tracking active user with multiple sessions
5 years ago
Rohan Sircar
d1a2d58411
proper formatting for last active
5 years ago
Rohan Sircar
74396ccd68
added thymeleaf template logic for active users in chat page
5 years ago
Rohan Sircar
e85650d499
static chat js
5 years ago
Rohan Sircar
d577e38692
Added markdown rendering to chat area
5 years ago
Rohan Sircar
08c2ec786c
messages are now sanitized for unsafe html/js using DOMPurify
5 years ago
Rohan Sircar
14843cd8f0
Done logic for getting online users and their last active time
5 years ago
Rohan Sircar
8824678682
Homepage now says welcome guest instead of anonymouseUser
5 years ago
Rohan Sircar
fd6de29a89
Done get and post logic
Also added an initial input box for passphrase which is set to hidden
later
5 years ago
Rohan Sircar
ed3853c5ea
changed to queryselector to extract username and date and last message fields in userbox
5 years ago
Rohan Sircar
7775dd798e
Added code for chat card
Chat card displayed only when at least one user selected
User box highlighted when selected
Hover color for user box added
5 years ago
Rohan Sircar
579f819254
set active css class to user boxes on click
5 years ago
Rohan Sircar
dacf0f90dc
improved chat UI
5 years ago
Rohan Sircar
3692608d8f
added user change passphrase page and some general adjustments
5 years ago
Rohan Sircar
5c056cf5a0
First Commit
This branch seeks to implement the admin area of the web app in a
pre-made template. For now, start-bootstrap has been chosen. In this
commit, the home page of the admin area has been implemented in a red
black theme.
Rest of the functionality will be implemented in subsequent commits.
5 years ago
Rohan Sircar
d6a6d32225
deleted obsolete file
5 years ago
Rohan Sircar
febfaeec9a
Changes to error model and login/registration cards
Added json property names to error model
Switched to grid offset instead of changing card width using CSS
5 years ago
Rohan Sircar
d3ac95e8f4
Implemented primitive rest validation.
A better implementation to be done later.
5 years ago
Rohan Sircar
97091123b9
Revert "Architecutre improvements and validation"
This reverts commit c1fd68901e
.
5 years ago
Rohan Sircar
acbacc8fa8
Architecture improvements and validation
Improved system architecture and added sample regex validation to
registration
5 years ago
Rohan Sircar
4607ae5e17
Architecutre improvements and validation
Improved system architecture and added sample regex validation to
registration
5 years ago
Rohan Sircar
2625cf7865
add bootstrap to web front-end
5 years ago