diff options
author | hellekin <hellekin@cepheide.org> | 2020-10-05 22:10:26 +0200 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2020-10-05 22:10:26 +0200 |
commit | 046c210e91fc03e1c670a0a28ea4849968c77056 (patch) | |
tree | 6c6437c7d9a6f252950e3ba1edc9fe12398938df /app/views/welcome/dashboard.html.erb | |
parent | d0efb8c068a86436359b3c20950d427c7a6a27cd (diff) | |
download | incommon-map-046c210e91fc03e1c670a0a28ea4849968c77056.tar.gz |
Add Authentication logic
The ApplicationController provides a `current_user` method (and
helper) to access the authenticated user (if any).
The WelcomeController provides minimal logic to authenticate
against DiscourseSSO.
Current state is that one can login and logout.
Views need a lot of work.
Diffstat (limited to 'app/views/welcome/dashboard.html.erb')
-rw-r--r-- | app/views/welcome/dashboard.html.erb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/welcome/dashboard.html.erb b/app/views/welcome/dashboard.html.erb new file mode 100644 index 0000000..81264e2 --- /dev/null +++ b/app/views/welcome/dashboard.html.erb @@ -0,0 +1,5 @@ +<h1>Welcome <%= h current_user.name %>!</h1> + +<p>Current Agent: <%= current_user&.agencies&.first&.agent&.name %></p> + +<p>Cool, what can we do now?</p> |