47 Commits (beta)

Author SHA1 Message Date
Opaque02 c2af4a07e9
Made changes to server to allow admin panel to retrieve last activity instead of last logged in date (#58)
* Made changes to server to allow admin panel to retrieve last activity instead of last logged in date

* Added TODO comment for lastLoggedIn json result

* Updated variable names as per Pancake's comments
2 months ago
Pancakes 00e783ff8a
Styling fixes 2 months ago
Opaque02 430496941c
Admin panel upgrade server updates (#54)
* Changes for testing

* Updating server code to allow unlinking discord IDs as needed

* Fixed some debug issues commented out code

* Updating server to allow updated admin panel functionality

* Updated some commentted out code

* Updated missed /

* Updated to allow for a single query to the db with multiple columns, and a conversion to allow string outputs instead of sql.NullStrings

* Deleted .bak files and .vs folder as per Walker's discord message

* Added logic to check server to make sure usename exists for discord linking and unlinking

* Changes to allow linking and unlinking of google Id from DB

* Removed .vs folder

* Reverted dev code

* PR comments

* Updates from Pancake's comments
2 months ago
Frederico Santos 8e20875453
feat: Add admin Discord link endpoint (#49)
* feat: Add admin Discord link endpoint

* feat: Add Discord Guild ID flag to server configuration

* feat: Add logging for Discord ID addition in admin Discord link endpoint

* chore: Update variable name for Discord guild ID in account package

* chore: Add logging for Discord ID addition in admin Discord link endpoint

* chore: Add admin Discord link endpoint

* chore: Add logging for Discord ID addition in admin Discord link endpoint

* chore: Remove unnecessary code in handleAdminDiscordLink function

* chore: Update logging format in handleAdminDiscordLink function

* chore: Refactor handleAdminDiscordLink function for improved logging

* chore: Update Discord Bot Token and Discord Guild ID flags in server configuration

* chore: Refactor handleAccountInfo function for improved readability and error handling

* chore: Update server configuration flags for Discord Bot Token and Guild ID

* Refactor handleAdminDiscordLink function for improved error handling and logging

* feat: Add "Helper" role to Discord admin check for enhanced access control
3 months ago
Frederico Santos fa57f5997f
Added support for Discord OAuth2 (#25)
* Need a login check

* chore: Add Discord OAuth2 authentication endpoint

chore: Update dependencies and clean up code

chore: Update dependencies, add Discord OAuth2 authentication endpoint, and clean up code

chore: Update dependencies, add Google OAuth2 authentication endpoint, and clean up code

Code clean up

uniqueness on external account id

chore: Add Discord and Google OAuth2 authentication endpoints, and update dependencies

code review fixes

* chore: Update prodHandler to use clienturl flag for Access-Control-Allow-Origin

* chore: Refactor FetchDiscordIdByUsername and FetchGoogleIdByUsername to handle null values

* chore: Set secure and same-site attributes for session cookie

* chore: Set session cookie expiration to 3 months

* Update callback URL for Oauth2 client in docker-compose and rogueserver.go

* Update callback URL for Oauth2 client in docker-compose and rogueserver.go

---------

Co-authored-by: Matthew Olker <matthew.olker@gmail.com>
5 months ago
Pancakes dd00d90211
Remove voucher compensation code 6 months ago
maru 476e667572
More cleanup 7 months ago
maru c76746ad35
Replace REPLACE INTO usage 7 months ago
maru 7bfd9dfba7
Fix code 7 months ago
maru fc458fad73
Revert "Remove anti cheat"
This reverts commit 512a24e5c3.
7 months ago
Up f31f130c14
also check for empty 7 months ago
Up c17c583321
update active session if none is found 7 months ago
Up e2efcd550c
fix faulty sql query 7 months ago
Up c0aade2e65
simplify ID handling 7 months ago
Up 436fce8759
add client session ID tokens 7 months ago
maru a087234aa8
Replace usernameFromRequest 8 months ago
maru 808a9e6c7d
Remove redundant error check 8 months ago
Flashfyre 3553891e6e Temporarily remove session expiration check 8 months ago
Flashfyre e19104c86a Prevent initial out of date message on register 8 months ago
maru 512a24e5c3
Remove anti cheat 8 months ago
maru 786e947e09
Change 'banned' to 'limited 8 months ago
maru 8481626193
Relicense under AGPL 8 months ago
maru 235fb9c91c
Add copyright notice to files 8 months ago
maru e8240c9c38
Rename to rogueserver 8 months ago
maru e184e9da91
Ban if vouchers over a certain threshold 8 months ago
maru cbcc68f8e4
Add password changes 8 months ago
maru 2adb70dd7e
Styling consistency 8 months ago
Flashfyre 2f8c2d3f07 Match trainer and secret ID on update for data integrity 8 months ago
Flashfyre 6acbb6448a Protect against cross-session overwrites 8 months ago
maru 522ce9f4fa
Update GitHub link 8 months ago
Flashfyre a4014feea8 Track player vouchers 9 months ago
Flashfyre 992864b785 Add voucher compensation logic 9 months ago
maru 0edfeab3ca
Various styling changes 9 months ago
Flashfyre 99d3490172 Update account stats on system save 9 months ago
Flashfyre be04408336 Update random daily seed logic 9 months ago
Flashfyre 23eb0bbbe8 Log last activity date 9 months ago
maru a19280d02c
Add cloud save data 12 months ago
Flashfyre e05f6f752b Add last logged in date to accounts table 12 months ago
maru 575167f0f9
Simplify error return in GetUsernameFromToken 12 months ago
Flashfyre 9ef76f1064 Fix account session insert query typo 12 months ago
Flashfyre 688b435bd1 Rename key column to hash 12 months ago
Flashfyre b4be49bf80 Fix query keyword conflict by using alias 12 months ago
maru f5d9cc6760
Workaround for column name 12 months ago
maru 0e6b2bbf5c
Fix query in GetUsernameFromToken 12 months ago
maru 8d3d24a58a
Add mysql driver 12 months ago
maru 4600b7b024
More changes 12 months ago
maru f690c53607
Add changes so far 1 year ago