Skip to content

Commit d924e36

Browse files
committed
feat: fix roblox image
1 parent d0e6392 commit d924e36

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

dashboard/public/roblox.png

1.74 KB
Loading

dashboard/src/components/EnvComponents/OAuthConfig.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,10 @@ const OAuthConfig = ({
483483
border="1px solid #3b5998"
484484
borderRadius="5px"
485485
>
486-
Roblox
486+
<img
487+
src="https://authorizer.dev/_next/image?url=%2Fimages%2Froblox.png&w=25&q=25"
488+
alt="Roblox"
489+
/>
487490
</Center>
488491
<Center
489492
w={isNotSmallerScreen ? '70%' : '100%'}

server/handlers/oauth_callback.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ func processRobloxUserInfo(ctx context.Context, code, verifier string) (*models.
873873
if val, ok := userRawData["email"]; ok {
874874
email = val.(string)
875875
} else {
876-
email = userRawData["preferred_username"].(string)
876+
email = userRawData["sub"].(string)
877877
}
878878
user := &models.User{
879879
GivenName: &firstName,

0 commit comments

Comments
 (0)