Skip to content
Snippets Groups Projects
Commit 427ffde1 authored by Tibo's avatar Tibo
Browse files

reset dashboard token

parent 751766c7
No related branches found
No related tags found
No related merge requests found
......@@ -84,6 +84,12 @@ class OrganizationController extends Controller
return view("organization.dashboard", array("organization" => $organization));
}
public function resetToken(Organization $organization)
{
$organization->dashboard_token = \str_random(20);
return action('OrganizationController@show', ["organization" => $organization]);
}
/**
* Show the form for editing the specified resource.
*
......
......@@ -21,6 +21,14 @@
Public dashboard
</a>
</p>
<p>
<a class="btn btn-primary btn-sm"
href="{{ action("OrganizationController@resetToken", [
"organization" => $organization]) }}">
Reset dashboard token
</a>
</p>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment