Skip to content

Commit

Permalink
Add hooks before and after form inputs/submit
Browse files Browse the repository at this point in the history
Goal is to make social logins more easily using trestle-auth.
  • Loading branch information
coezbek committed Dec 16, 2021
1 parent f74c6b9 commit b619801
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/views/trestle/auth/sessions/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@
</div>
<% end -%>
<%= hook("auth.login.form.before") %>
<%= render "form", f: f %>
<%= hook("auth.login.form.after") %>
<% end %>

0 comments on commit b619801

Please sign in to comment.