chore: rename project

This commit is contained in:
Lakhan Samani
2021-07-23 21:57:44 +05:30
parent aa6c22348e
commit 30f83aaf82
36 changed files with 118 additions and 116 deletions

View File

@@ -6,10 +6,10 @@ import (
"strings"
"time"
"github.com/authorizerdev/authorizer/server/constants"
"github.com/authorizerdev/authorizer/server/enum"
"github.com/gin-gonic/gin"
"github.com/golang-jwt/jwt"
"github.com/yauthdev/yauth/server/constants"
"github.com/yauthdev/yauth/server/enum"
)
type UserAuthInfo struct {

View File

@@ -5,8 +5,8 @@ import (
"net/http"
"net/url"
"github.com/authorizerdev/authorizer/server/constants"
"github.com/gin-gonic/gin"
"github.com/yauthdev/yauth/server/constants"
)
func SetCookie(gc *gin.Context, token string) {

View File

@@ -3,8 +3,8 @@ package utils
import (
"fmt"
"github.com/yauthdev/yauth/server/constants"
"github.com/yauthdev/yauth/server/email"
"github.com/authorizerdev/authorizer/server/constants"
"github.com/authorizerdev/authorizer/server/email"
)
// SendVerificationMail to send verification email

View File

@@ -4,7 +4,7 @@ import (
"net/url"
"strings"
"github.com/yauthdev/yauth/server/constants"
"github.com/authorizerdev/authorizer/server/constants"
)
func GetDomainName() string {

View File

@@ -1,8 +1,8 @@
package utils
import (
"github.com/authorizerdev/authorizer/server/constants"
"github.com/gin-gonic/gin"
"github.com/yauthdev/yauth/server/constants"
)
func IsSuperAdmin(gc *gin.Context) bool {
@@ -11,5 +11,5 @@ func IsSuperAdmin(gc *gin.Context) bool {
return false
}
return secret == constants.YAUTH_ADMIN_SECRET
return secret == constants.ROOT_SECRET
}

View File

@@ -3,8 +3,8 @@ package utils
import (
"time"
"github.com/authorizerdev/authorizer/server/constants"
"github.com/golang-jwt/jwt"
"github.com/yauthdev/yauth/server/constants"
)
type UserInfo struct {