From 4d2afac05368ad914500007a6c83b0c71815dd62 Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Tue, 26 Jul 2022 14:27:27 +0100 Subject: [PATCH] Password reset --- account.php | 7 +-- assets/icons/github-logo.svg | 1 + assets/icons/password.svg | 1 + assets/icons/telegram-logo.svg | 1 + assets/icons/twitter-logo.svg | 1 + css/master.css | 1 + css/password-reset.css | 16 ++++++ password-reset.php | 98 ++++++++++++++++++++++++++++++++++ ui/footer.html | 6 +-- 9 files changed, 126 insertions(+), 6 deletions(-) create mode 100644 assets/icons/github-logo.svg create mode 100644 assets/icons/password.svg create mode 100644 assets/icons/telegram-logo.svg create mode 100644 assets/icons/twitter-logo.svg create mode 100644 css/password-reset.css create mode 100644 password-reset.php diff --git a/account.php b/account.php index 1311eb9..f685203 100644 --- a/account.php +++ b/account.php @@ -16,11 +16,12 @@

Account settings

O hi ".$_SESSION["username"].". This is pretty empty right now. But it wont be soon!

"; - echo "Logout"; + echo "

O hi ".$_SESSION["username"].".

"; + echo "Reset Password"; + echo "Logout"; } else { echo "

You must be logged in to change your account settings!

"; - echo "Sign up!"; + echo "Login!"; } ?> diff --git a/assets/icons/github-logo.svg b/assets/icons/github-logo.svg new file mode 100644 index 0000000..a3941fb --- /dev/null +++ b/assets/icons/github-logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/icons/password.svg b/assets/icons/password.svg new file mode 100644 index 0000000..41d62af --- /dev/null +++ b/assets/icons/password.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/icons/telegram-logo.svg b/assets/icons/telegram-logo.svg new file mode 100644 index 0000000..60e4454 --- /dev/null +++ b/assets/icons/telegram-logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/icons/twitter-logo.svg b/assets/icons/twitter-logo.svg new file mode 100644 index 0000000..4bafcec --- /dev/null +++ b/assets/icons/twitter-logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/css/master.css b/css/master.css index 701dce0..93a7657 100644 --- a/css/master.css +++ b/css/master.css @@ -9,6 +9,7 @@ @import "signup.css"; @import "login.css"; @import "account.css"; +@import "password-reset.css"; :root { --bg: #151515df; diff --git a/css/password-reset.css b/css/password-reset.css new file mode 100644 index 0000000..1c5ae03 --- /dev/null +++ b/css/password-reset.css @@ -0,0 +1,16 @@ +/* + -=-=-= LONGIN =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +*/ +.password-reset-root { + margin: 0 auto 2rem; padding: 0.5rem; + + max-width: 621px; width: calc(100% - 2rem); + + background-color: var(--bg); color: var(--fg); + + border: 0.2rem solid var(--green); + outline: 0.5rem solid var(--bg); + + border-radius: var(--rad); + box-shadow: var(--shadow); +} diff --git a/password-reset.php b/password-reset.php new file mode 100644 index 0000000..f48227c --- /dev/null +++ b/password-reset.php @@ -0,0 +1,98 @@ + + + + + + Account + + + + + + + + +
+

Reset Password

+

After reset, you will be kicked out to login again

+
+ + + +
+ ".$error."

"; + } + ?> +
+ + + + diff --git a/ui/footer.html b/ui/footer.html index d56d839..5eb6fb2 100644 --- a/ui/footer.html +++ b/ui/footer.html @@ -1,9 +1,9 @@