Browse Source

dont let signed in users create new users.

tags/rls1
kenn408k 6 years ago
parent
commit
b9d35357e0
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      content/signup.php

+ 4
- 0
content/signup.php View File

7
 
7
 
8
 Design::header($setup, 0);
8
 Design::header($setup, 0);
9
 
9
 
10
+if (User::checkLogin() == true) {
11
+    header('Location: '.Config::$sys_url.'?page=home');
12
+}
13
+
10
 if (isset($_POST['username'])) {
14
 if (isset($_POST['username'])) {
11
     if (Alter::addUser($_POST['username'],$_POST['password'],$_POST['realname'],$_POST['mail'],25)) {
15
     if (Alter::addUser($_POST['username'],$_POST['password'],$_POST['realname'],$_POST['mail'],25)) {
12
      // Success! User created - Redirect to login
16
      // Success! User created - Redirect to login

Loading…
Cancel
Save