diff --git a/pkg/api/oauth2_authentications.go b/pkg/api/oauth2_authentications.go index df5511a3..bea34f29 100644 --- a/pkg/api/oauth2_authentications.go +++ b/pkg/api/oauth2_authentications.go @@ -20,10 +20,10 @@ import ( "github.com/mayswind/ezbookkeeping/pkg/validators" ) -const oauth2CallbackPageUrlSuccessFormat = "%sdesktop/#/oauth2_callback?platform=%s&provider=%s&token=%s" -const oauth2CallbackPageUrlNeedVerifyFormat = "%sdesktop/#/oauth2_callback?platform=%s&provider=%s&userName=%s&token=%s" -const oauth2CallbackPageUrlFailedFormat = "%sdesktop/#/oauth2_callback?errorCode=%d&errorMessage=%s" -const oauth2CallbackPageUrlErrorMessageFormat = "%sdesktop/#/oauth2_callback?errorMessage=%s" +const oauth2CallbackPageUrlSuccessFormat = "%sdesktop#/oauth2_callback?platform=%s&provider=%s&token=%s" +const oauth2CallbackPageUrlNeedVerifyFormat = "%sdesktop#/oauth2_callback?platform=%s&provider=%s&userName=%s&token=%s" +const oauth2CallbackPageUrlFailedFormat = "%sdesktop#/oauth2_callback?errorCode=%d&errorMessage=%s" +const oauth2CallbackPageUrlErrorMessageFormat = "%sdesktop#/oauth2_callback?errorMessage=%s" // OAuth2AuthenticationApi represents OAuth 2.0 authorization api type OAuth2AuthenticationApi struct { diff --git a/pkg/services/forget_passwords.go b/pkg/services/forget_passwords.go index 34728521..8c976e37 100644 --- a/pkg/services/forget_passwords.go +++ b/pkg/services/forget_passwords.go @@ -14,7 +14,7 @@ import ( "github.com/mayswind/ezbookkeeping/pkg/templates" ) -const passwordResetUrlFormat = "%sdesktop/#/resetpassword?token=%s" +const passwordResetUrlFormat = "%sdesktop#/resetpassword?token=%s" // ForgetPasswordService represents forget password service type ForgetPasswordService struct { diff --git a/pkg/services/users.go b/pkg/services/users.go index b662e672..d5eee3dc 100644 --- a/pkg/services/users.go +++ b/pkg/services/users.go @@ -25,7 +25,7 @@ import ( "github.com/mayswind/ezbookkeeping/pkg/uuid" ) -const verifyEmailUrlFormat = "%sdesktop/#/verify_email?token=%s" +const verifyEmailUrlFormat = "%sdesktop#/verify_email?token=%s" // UserService represents user service type UserService struct {