diff --git a/_sakura/templates/yuuno/main/legacypasswordchange.tpl b/_sakura/templates/yuuno/main/legacypasswordchange.tpl
deleted file mode 100644
index f80c0e1..0000000
--- a/_sakura/templates/yuuno/main/legacypasswordchange.tpl
+++ /dev/null
@@ -1,29 +0,0 @@
-{% include 'global/header.tpl' %}
-
-
Changing Password
-
- Because of a change in the way Flashii handles authentication you are required to change your password.
-
-
-
-{% include 'global/footer.tpl' %}
diff --git a/main/authenticate.php b/main/authenticate.php
index 301d6a1..5e14492 100644
--- a/main/authenticate.php
+++ b/main/authenticate.php
@@ -53,7 +53,7 @@ if(isset($_REQUEST['mode'])) {
// Login check
if(Users::checkLogin()) {
- if(!in_array($_REQUEST['mode'], ['logout', 'legacypw'])) {
+ if(!in_array($_REQUEST['mode'], ['logout'])) {
$continue = false;
// Add page specific things
@@ -86,32 +86,6 @@ if(isset($_REQUEST['mode'])) {
break;
- case 'legacypw':
-
- // Attempt change
- $legacypass = Users::changeLegacy($_REQUEST['oldpw'], $_REQUEST['newpw'], $_REQUEST['verpw']);
-
- // Array containing "human understandable" messages
- $messages = [
- 'USER_NOT_LOGIN' => 'What are you doing, you\'re not even logged in. GO AWAY!',
- 'INCORRECT_PASSWORD' => 'The password you entered was invalid.',
- 'NOT_ALLOWED' => 'Your account does not have the required permissions to change your password.',
- 'NO_LOGIN' => 'Logging into this account is disabled.',
- 'PASS_TOO_SHIT' => 'Your password is too weak, try adding some special characters.',
- 'PASS_NOT_MATCH' => 'Passwords do not match.',
- 'SUCCESS' => 'Successfully changed your password, you may now continue.'
- ];
-
- // Add page specific things
- $renderData['page'] = [
- 'title' => 'Change Password',
- 'redirect' => '/',
- 'message' => $messages[$legacypass[1]],
- 'success' => $legacypass[0]
- ];
-
- break;
-
case 'changepassword':
// Attempt change
@@ -200,14 +174,13 @@ if(isset($_REQUEST['mode'])) {
'INCORRECT_PASSWORD' => 'The password you entered was invalid.',
'NOT_ALLOWED' => 'Your account does not have the required permissions to log in.',
'NO_LOGIN' => 'Logging into this account is disabled.',
- 'LEGACY_SUCCESS' => 'Login successful! Taking you to the password changing page...',
'LOGIN_SUCESS' => 'Login successful!'
];
// Add page specific things
$renderData['page'] = [
'title' => 'Login',
- 'redirect' => ($login[1] == 'LEGACY_SUCCESS' ? '/authenticate?legacy=true' : ($login[0] ? $_REQUEST['redirect'] : '/authenticate')),
+ 'redirect' => $login[0] ? $_REQUEST['redirect'] : '/authenticate',
'message' => $messages[$login[1]],
'success' => $login[0]
];
@@ -326,17 +299,6 @@ $renderData['auth'] = [
// Check if the user is already logged in
if(Users::checkLogin()) {
- // If password forgot things are set display password forget thing
- if(isset($_REQUEST['legacy']) && $_REQUEST['legacy'] && Users::getUser(Session::$userId)['password_algo'] == 'legacy') {
-
- $renderData['page']['title'] = 'Changing Password';
- $renderData['auth']['changingPass'] = true;
-
- print Templates::render('main/legacypasswordchange.tpl', $renderData);
- exit;
-
- }
-
// Add page specific things
$renderData['page'] = [
'title' => 'Authentication',