doc: added comments and updated to latest ashautentication version and required changes
This commit is contained in:
parent
a6fcaa1640
commit
7bfde5e230
19 changed files with 74 additions and 478 deletions
|
|
@ -22,8 +22,6 @@ defmodule MvWeb.AuthController do
|
|||
end
|
||||
|
||||
def failure(conn, activity, reason) do
|
||||
IO.puts(inspect(reason))
|
||||
|
||||
message =
|
||||
case {activity, reason} do
|
||||
{_,
|
||||
|
|
@ -50,7 +48,7 @@ defmodule MvWeb.AuthController do
|
|||
return_to = get_session(conn, :return_to) || ~p"/"
|
||||
|
||||
conn
|
||||
|> clear_session()
|
||||
|> clear_session(:mv)
|
||||
|> put_flash(:info, "You are now signed out")
|
||||
|> redirect(to: return_to)
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
<!--
|
||||
THIS IS JUST THE ASHAUTHENTICATION EXAMPLE - WE NEED TO CHANGE IT LATER
|
||||
-->
|
||||
<nav class="bg-gray-800">
|
||||
<div class="px-2 mx-auto max-w-7xl sm:px-6 lg:px-8">
|
||||
<div class="relative flex items-center justify-between h-16">
|
||||
|
|
@ -5,7 +8,7 @@
|
|||
<div class="block ml-6">
|
||||
<div class="flex space-x-4">
|
||||
<div class="px-3 py-2 text-xl font-medium text-white ">
|
||||
Ash Demo
|
||||
Mitgliederverwaltung
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue