diff --git a/README.md b/README.md
index c098597d..8e53aca2 100644
--- a/README.md
+++ b/README.md
@@ -59,11 +59,19 @@ Set the files ownership to `www-data` user.
```sh
sudo chown -R www-data:www-data /var/www
```
+Move the RaspAP configuration file to the correct location
+```sh
+sudo mkdir /etc/raspad
+sudo mv /var/www/raspad.php /etc/raspad/
+sudo chown -R www-data:www-data /etc/raspad
+```
Reboot and it should be up and running!
```sh
sudo reboot
```
+The default username is 'admin' and the default password is 'secret'.
+
## Optional services
OpenVPN and TOR are two additional services that run perfectly well on the RPi, and are a nice way to extend the usefulness of your WiFi router. I've started on interfaces to administer these services. Not everyone will need them, so for the moment they are disabled by default. You can enable them by changing these options in `index.php`:
diff --git a/includes/admin.php b/includes/admin.php
new file mode 100755
index 00000000..12d12fee
--- /dev/null
+++ b/includes/admin.php
@@ -0,0 +1,78 @@
+'.$message;
+ if ($dismissable) $status .= '';
+ $status .= '';
+
+ return $status;
+}
+
+function DisplayRaspAPConfig($username, $password){
+ $status = '';
+ if (isset($_POST['UpdateAdminPassword'])) {
+ if (password_verify($_POST['oldpass'], $password)) {
+ $new_username=trim($_POST['username']);
+ if ($_POST['newpass'] != $_POST['newpassagain']) {
+ $status = Status('New passwords do not match', 'danger');
+ } else if ($new_username == '') {
+ $status = Status('Username must not be empty', 'danger');
+ } else {
+ if ($auth_file = fopen(RASPI_ADMIN_DETAILS, 'w')) {
+ fwrite($auth_file, $new_username.PHP_EOL);
+ fwrite($auth_file, password_hash($_POST['newpass'], PASSWORD_BCRYPT).PHP_EOL);
+ fclose($auth_file);
+ $username = $new_username;
+ $status = Status('Admin password updated');
+ } else {
+ $status = Status('Failed to update admin password', 'danger');
+ }
+ }
+ } else {
+ $status = Status('Old password does not match', 'danger');
+ }
+ }
+?>
+