44 Commits (master)

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