mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-06-04 11:25:52 +08:00

* feat: added license manager and feature flags * feat: completed org domain api * chore: checking in saml auth handler code * feat: added signup with sso * feat: added login support for admins * feat: added pem support for certificate * ci(build-workflow): 👷 include EE query-service * fix: 🐛 update package name * chore(ee): 🔧 LD_FLAGS related changes Signed-off-by: Prashant Shahi <prashant@signoz.io> Co-authored-by: Prashant Shahi <prashant@signoz.io> Co-authored-by: nityanandagohain <nityanandagohain@gmail.com>
37 lines
750 B
Go
37 lines
750 B
Go
package model
|
|
|
|
import "fmt"
|
|
|
|
// custom errors related to registration
|
|
type ErrFeatureUnavailable struct {
|
|
Key string
|
|
}
|
|
|
|
func (errFeatureUnavailable ErrFeatureUnavailable) Error() string {
|
|
return fmt.Sprintf("feature unavailable: %s", errFeatureUnavailable.Key)
|
|
}
|
|
|
|
type ErrEmailRequired struct{}
|
|
|
|
func (errEmailRequired ErrEmailRequired) Error() string {
|
|
return "email is required"
|
|
}
|
|
|
|
type ErrPasswordRequired struct{}
|
|
|
|
func (errPasswordRequired ErrPasswordRequired) Error() string {
|
|
return "password is required"
|
|
}
|
|
|
|
type ErrSignupFailed struct{}
|
|
|
|
func (errSignupFailed ErrSignupFailed) Error() string {
|
|
return "failed to register user"
|
|
}
|
|
|
|
type ErrNoOrgFound struct{}
|
|
|
|
func (errNoOrgFound ErrNoOrgFound) Error() string {
|
|
return "no org found"
|
|
}
|