Fix CSRF for the remote follow (admin side)

This commit is contained in:
Thomas Sileo 2018-06-04 18:01:36 +02:00
parent 362e9c660f
commit b4d44294e2

View file

@ -7,8 +7,9 @@
<h2>You're about to follow <strong>{{ profile}} </strong></h2> <h2>You're about to follow <strong>{{ profile}} </strong></h2>
<form method="POST" action=""> <form method="POST" action="">
<input type="hidden" name="profile" value="{{ profile }}"> <input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
<input type="submit" value="follow"> <input type="hidden" name="profile" value="{{ profile }}">
<input type="submit" value="follow">
</form> </form>
</div> </div>