From c3ac337412c3cdae4bdf5762c379900177c6807a Mon Sep 17 00:00:00 2001 From: Matthew Evans <7916000+ml-evs@users.noreply.github.com> Date: Sat, 28 Oct 2023 15:42:58 +0100 Subject: [PATCH] Improve login/logout UI to support multiple authentication mechanisms (#384) * First hash at a login modal that enables login via GitHub or ORCID * Add email login option to login modal UI * Refactor login component to also handle displaying current user info --- webapp/src/App.vue | 4 + webapp/src/components/LoginDetails.vue | 144 +++++++++++++++++++++++++ webapp/src/components/Navbar.vue | 42 +------- webapp/src/main.js | 7 +- 4 files changed, 159 insertions(+), 38 deletions(-) create mode 100644 webapp/src/components/LoginDetails.vue diff --git a/webapp/src/App.vue b/webapp/src/App.vue index accf96878..2aacdcf46 100644 --- a/webapp/src/App.vue +++ b/webapp/src/App.vue @@ -108,6 +108,10 @@ body { border: 2px solid transparent; } +.fa-orcid { + color: #a6ce39; +} + .badge.clickable:hover { cursor: pointer; border: 2px solid #000000; diff --git a/webapp/src/components/LoginDetails.vue b/webapp/src/components/LoginDetails.vue new file mode 100644 index 000000000..074503e85 --- /dev/null +++ b/webapp/src/components/LoginDetails.vue @@ -0,0 +1,144 @@ + + + + + diff --git a/webapp/src/components/Navbar.vue b/webapp/src/components/Navbar.vue index 22481e5b7..32cc867b8 100644 --- a/webapp/src/components/Navbar.vue +++ b/webapp/src/components/Navbar.vue @@ -5,20 +5,9 @@ -
-
- {{ currentUser }}   - -    Logout -
-
-  Login -
-
+ + +