Skip to content

Commit f2b44ca

Browse files
committed
Fix API tokens form
Fixes #1666
1 parent 4e0339c commit f2b44ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/teslamate_web/live/signin_live/index.html.leex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="column is-half">
33
<%= case @state do %>
44
<% {type, changeset} when type in [:credentials, :tokens]-> %>
5-
<%= f = form_for changeset, "#", [phx_change: :validate, phx_submit: :sign_in, class: "box", as: :credentials] %>
5+
<%= f = form_for changeset, "#", [phx_change: :validate, phx_submit: :sign_in, class: "box", as: type] %>
66
<%= if @error do %>
77
<div class="notification is-danger">
88
Error: <%= @error %>

0 commit comments

Comments
 (0)