1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 13:19:43 +02:00

Fixes issue with auth login redirect failure

This commit is contained in:
Harvey Kandola 2017-07-17 10:28:32 +01:00
parent a8e8d141d2
commit 3d6727ff4c
4 changed files with 10 additions and 6 deletions

View file

@ -40,14 +40,20 @@ function getAppUrl(domain) {
}
function isAjaxAccessError(reason) {
if (typeof reason === "undefined" || typeof reason.errors === "undefined") {
if (typeof reason === "undefined") {
return false;
}
if (reason.errors.length > 0 && (reason.errors[0].status === "401" || reason.errors[0].status === "403")) {
if (reason.message === 'Ajax authorization failed') {
return true;
}
if (typeof reason.errors === "undefined") {
if (reason.errors.length > 0 && (reason.errors[0].status === "401" || reason.errors[0].status === "403")) {
return true;
}
}
return false;
}

View file

@ -35,7 +35,7 @@ var Product core.ProdInfo
func init() {
Product.Major = "1"
Product.Minor = "49"
Product.Patch = "0"
Product.Patch = "1"
Product.Version = fmt.Sprintf("%s.%s.%s", Product.Major, Product.Minor, Product.Patch)
Product.Edition = "Community"
Product.Title = fmt.Sprintf("%s Edition", Product.Edition)

View file

@ -83,8 +83,6 @@ func init() {
}
}
fmt.Println(Db.DriverName())
return false // value not changed
})
}