diff --git a/views/index.php b/views/index.php index 4277fe1..4542422 100644 --- a/views/index.php +++ b/views/index.php @@ -5,16 +5,18 @@
Quill is a simple app for posting text notes to your website.
- if(session('me')): - if ( profile('photo') ) { - ?>You're already signed in!
+ if(session('me')): ?>
+
+ if(profile('photo')): ?>
+
+ endif ?>
+ if(profile('name')): ?>
+
Signed in as: = htmlspecialchars(profile('name')); ?>
+ endif ?> + if(!profile('name') && !profile('photo')): ?> +You're already signed in!
+ endif ?> + else: ?>To use Quill, sign in with your domain. Your website will need to support Micropub for creating new posts.
diff --git a/views/settings.php b/views/settings.php index 51d3a6b..0f2c5e3 100644 --- a/views/settings.php +++ b/views/settings.php @@ -8,13 +8,18 @@= $this->user->url; ?>
(should be your URL)= profile('name'); ?>
= profile('photo'); ?>
= $this->user->micropub_scope ?>
(should be a space-separated list of permissions including "create")