Skip to content

Commit

Permalink
switch from svg to png
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-nettica committed Dec 29, 2024
1 parent a5af3b2 commit d968558
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions api/v1/subscription/subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func createSubscriptionAndroid(c *gin.Context) {
account.Status = "Active"
account.CreatedBy = receipt.Email
account.UpdatedBy = receipt.Email
account.Picture = os.Getenv("SERVER") + "/account-circle.svg"
account.Picture = os.Getenv("SERVER") + "/account-circle.png"

a, err := core.CreateAccount(&account)
log.Infof("CREATE ACCOUNT = %v", a)
Expand Down Expand Up @@ -1050,7 +1050,7 @@ func createSubscriptionApple(c *gin.Context) {
account.Status = "Active"
account.CreatedBy = receipt.Email
account.UpdatedBy = receipt.Email
account.Picture = os.Getenv("SERVER") + "/account-circle.svg"
account.Picture = os.Getenv("SERVER") + "/account-circle.png"

a, err := core.CreateAccount(&account)
log.Infof("CREATE ACCOUNT = %v", a)
Expand Down Expand Up @@ -1498,7 +1498,7 @@ func createHelioSubscription(c *gin.Context) {
account.Status = "Active"
account.CreatedBy = email
account.UpdatedBy = email
account.Picture = os.Getenv("SERVER") + "/account-circle.svg"
account.Picture = os.Getenv("SERVER") + "/account-circle.png"

a, err := core.CreateAccount(&account)
log.Infof("CREATE ACCOUNT = %v", a)
Expand Down Expand Up @@ -1814,7 +1814,7 @@ func createSubscription(c *gin.Context) {
account.Status = "Active"
account.CreatedBy = email
account.UpdatedBy = email
account.Picture = os.Getenv("SERVER") + "/account-circle.svg"
account.Picture = os.Getenv("SERVER") + "/account-circle.png"

a, err := core.CreateAccount(&account)
log.Infof("CREATE ACCOUNT = %v", a)
Expand Down
2 changes: 1 addition & 1 deletion auth/basic/basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (o *Oauth2Basic) UserInfo(oauth2Token *oauth2.Token) (*model.User, error) {
user.Sub = idToken.Subject
user.Email = idToken.Subject + "@localhost"
user.Email = strings.ToLower(user.Email)
user.Picture = os.Getenv("SERVER") + "/account-circle.svg"
user.Picture = os.Getenv("SERVER") + "/account-circle.png"
user.Issuer = idToken.Issuer
user.IssuedAt = idToken.IssuedAt
log.Infof("user %v", user)
Expand Down
2 changes: 1 addition & 1 deletion auth/google/google.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (o *OAuth2Google) UserInfo(oauth2Token *oauth2.Token) (*model.User, error)
if v, found := claims["picture"]; found && v != nil {
user.Picture = v.(string)
} else {
user.Picture = os.Getenv("SERVER") + "/account-circle.svg"
user.Picture = os.Getenv("SERVER") + "/account-circle.png"
}

user.Issuer = idToken.Issuer
Expand Down
2 changes: 1 addition & 1 deletion auth/microsoft/microsoft.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (o *Oauth2Msft) UserInfo(oauth2Token *oauth2.Token) (*model.User, error) {
if v, found := claims["picture"]; found && v != nil {
user.Picture = v.(string)
} else {
user.Picture = os.Getenv("SERVER") + "/account-circle.svg"
user.Picture = os.Getenv("SERVER") + "/account-circle.png"
}

user.Issuer = idToken.Issuer
Expand Down
2 changes: 1 addition & 1 deletion auth/microsoft2/microsoft2.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func (o *Oauth2Microsoft) UserInfo(oauth2Token *oauth2.Token) (*model.User, erro
log.Infof("user.Sub: %s", user.Sub)

user.Name = authResult.IDToken.Name
user.Picture = os.Getenv("SERVER") + "/account-circle.svg"
user.Picture = os.Getenv("SERVER") + "/account-circle.png"

user.Issuer = authResult.IDToken.Issuer
user.IssuedAt = time.Unix(authResult.IDToken.IssuedAt, 0)
Expand Down
2 changes: 1 addition & 1 deletion auth/oauth2oidc/oauth2oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func (o *Oauth2idc) UserInfo(oauth2Token *oauth2.Token) (*model.User, error) {
if v, found := claims["picture"]; found && v != nil {
user.Picture = v.(string)
} else {
user.Picture = os.Getenv("SERVER") + "/account-circle.svg"
user.Picture = os.Getenv("SERVER") + "/account-circle.png"
}

user.Issuer = idToken.Issuer
Expand Down

0 comments on commit d968558

Please sign in to comment.