-
+
= get_user_display_name($_SESSION['id']) ?>
= format_bcid($_SESSION['id']) ?>
@@ -31,12 +31,6 @@
= get_string('page.settings') ?>
-
-
-
- = get_string('page.manageAppAccess') ?>
-
-
diff --git a/views/home.php b/views/home.php
index 93f70e4..f99802e 100644
--- a/views/home.php
+++ b/views/home.php
@@ -8,7 +8,17 @@
- ByeCorps ID
+
diff --git a/views/login.php b/views/login.php
index 500bb98..b497655 100644
--- a/views/login.php
+++ b/views/login.php
@@ -10,6 +10,11 @@ if ($_SESSION['auth']) {
}
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
+ // Validate email address
+ if (!validate_email($_POST['email'])) {
+ $error_body = get_string('error.invalidEmail');
+ }
+
// Figure out if it's a user
$user_to_log_in_as = db_execute('SELECT id, email, password FROM accounts WHERE email = ?', [$_POST['email']]);
if (!$user_to_log_in_as) {
@@ -28,6 +33,10 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
}
exit();
}
+} else {
+ if (key_exists('callback', $query)) {
+ $subtitle = get_string('auth.logInToContinue');
+ }
}
skip:
@@ -38,6 +47,7 @@ skip:
+
@@ -49,20 +59,39 @@ skip:
}
?>
- = get_string('page.login') ?>
-
+ = get_string('page.login') ?>
+ Don't have one? Sign up.
+ '. $subtitle .'';
+ }
+ ?>
+
-
+
+
+
+
+
+
+ = get_string('auth.passkey') ?>
+
= get_string('auth.logInWithPasskeyExplainer'); ?>
+
+
-
-
diff --git a/views/partials/settings_list.php b/views/partials/settings_list.php
new file mode 100644
index 0000000..13dad35
--- /dev/null
+++ b/views/partials/settings_list.php
@@ -0,0 +1,22 @@
+
+
+
diff --git a/views/profile.php b/views/profile.php
index 79ea029..5950231 100644
--- a/views/profile.php
+++ b/views/profile.php
@@ -18,14 +18,22 @@ if (is_null($user)) {
- = $profile_owner['id'] ?>
+
+
+
+ = get_user_display_name($profile_owner['id']) ?>
+ = format_bcid($profile_owner['id']) ?>
+
+
diff --git a/views/profile_edit.php b/views/profile_edit.php
new file mode 100644
index 0000000..d417279
--- /dev/null
+++ b/views/profile_edit.php
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Editing profile
+
+
+
+
+
+
+
+
+
diff --git a/views/settings.php b/views/settings.php
new file mode 100644
index 0000000..59a4eb7
--- /dev/null
+++ b/views/settings.php
@@ -0,0 +1,18 @@
+
+
+
+
+
= get_string('page.settings'); ?> ~> ByeCorps ID
+
+
+
+
+
+
+ = get_string('page.settings'); ?>
+
+
+
+
+
+
diff --git a/views/settings_region.php b/views/settings_region.php
new file mode 100644
index 0000000..b88e235
--- /dev/null
+++ b/views/settings_region.php
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
= get_string('page.settings'); ?> ~> ByeCorps ID
+
+
+
+
+
+
+ = get_string('page.settings'); ?>
+
+
+
+
= get_string('settings.region') ?>
+
Here you can set the language ByeCorps ID is displayed in.
+
+
+
+
+
+
+
+
diff --git a/views/settings_security.php b/views/settings_security.php
new file mode 100644
index 0000000..7831657
--- /dev/null
+++ b/views/settings_security.php
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
= get_string('page.settings'); ?> ~> ByeCorps ID
+
+
+
+
+
+
+ = get_string('page.settings'); ?>
+
+
+
+
= get_string('settings.security') ?>
+
= get_string('auth.password') ?>
+
+
+
+
+
+
+
+
+