summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/models/muser.php2
-rw-r--r--application/test/tests/test_api_v1.php2
-rw-r--r--application/test/tests/test_api_v2.php2
3 files changed, 3 insertions, 3 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)
diff --git a/application/test/tests/test_api_v1.php b/application/test/tests/test_api_v1.php
index 28b1576d0..9fb782563 100644
--- a/application/test/tests/test_api_v1.php
+++ b/application/test/tests/test_api_v1.php
@@ -80,7 +80,7 @@ class test_api_v1 extends \test\Test {
$this->t->is_deeply(array(
'status' => 'error',
'error_id' => 'api/not-authenticated',
- 'message' => 'Not authenticated. FileBin requires you to have an account, please go to the homepage for more information.',
+ 'message' => 'Not authenticated. FileBin requires you to have an account, please go to the homepage at http://127.0.0.1:23115/ for more information.',
), $ret, "expected error");
}
}
diff --git a/application/test/tests/test_api_v2.php b/application/test/tests/test_api_v2.php
index 96deb382c..f5200ddcc 100644
--- a/application/test/tests/test_api_v2.php
+++ b/application/test/tests/test_api_v2.php
@@ -80,7 +80,7 @@ class test_api_v2 extends \test\Test {
$this->t->is_deeply(array(
'status' => 'error',
'error_id' => 'api/not-authenticated',
- 'message' => 'Not authenticated. FileBin requires you to have an account, please go to the homepage for more information.',
+ 'message' => 'Not authenticated. FileBin requires you to have an account, please go to the homepage at http://127.0.0.1:23115/ for more information.',
), $ret, "expected error");
}
}