summaryrefslogtreecommitdiffstats
path: root/application/models
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-07-13 22:02:19 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-07-13 22:20:48 +0200
commita9dd92393081df6d46115cae19e1b9771f90352f (patch)
treed5d78e2719bdd6a620ec8d99d02cacd7dc0f5f88 /application/models
parent3bd289a3c14f377c3c689f97cf20366571f6add9 (diff)
Add site URL to authentication error
This might help users if they run their own installation, but forget to set the URL in the client config and then run into this error. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/models')
-rw-r--r--application/models/muser.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/models/muser.php b/application/models/muser.php
index fd45fc777..ffcec300a 100644
--- a/application/models/muser.php
+++ b/application/models/muser.php
@@ -185,7 +185,7 @@ class Muser extends CI_Model {
return $this->check_access_level($wanted_level);
}
- throw new \exceptions\NotAuthenticatedException("api/not-authenticated", "Not authenticated. FileBin requires you to have an account, please go to the homepage for more information.");
+ throw new \exceptions\NotAuthenticatedException("api/not-authenticated", "Not authenticated. FileBin requires you to have an account, please go to the homepage at ".site_url()." for more information.");
}
function username_exists($username)