Create the admin user on setup.
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
<div class='panel-heading'>Service Details</div>
|
||||
<div class='panel-body'>
|
||||
<form name='SetupForm' class='form-vertical' role='form' method="POST">
|
||||
<h3>Status Page Details</h3>
|
||||
<div class='form-group'>
|
||||
<label class='sr-only'>Site Name</label>
|
||||
<input type='text' name='app_name' class='form-control' placeholder='Site Name' required />
|
||||
@@ -32,6 +33,31 @@
|
||||
</label>
|
||||
Show support for Cachet?
|
||||
</div>
|
||||
|
||||
<h3>Administrator Account</h3>
|
||||
<div class='form-group'>
|
||||
<label class='sr-only'>Username</label>
|
||||
<input type='text' name='user[name]' class='form-control' placeholder='Username' required />
|
||||
@if($errors->has('user.name'))
|
||||
<span class='text-danger'>{{ $errors->first('user.name') }}</span>
|
||||
@endif
|
||||
</div>
|
||||
<div class='form-group'>
|
||||
<label class='sr-only'>Email</label>
|
||||
<input type='email' name='user[email]' class='form-control' placeholder='Email' required />
|
||||
@if($errors->has('user.email'))
|
||||
<span class='text-danger'>{{ $errors->first('user.email') }}</span>
|
||||
@endif
|
||||
</div>
|
||||
<div class='form-group'>
|
||||
<label class='sr-only'>Password</label>
|
||||
<input type='password' name='user[password]' class='form-control' placeholder='Password' required />
|
||||
@if($errors->has('user.password'))
|
||||
<span class='text-danger'>{{ $errors->first('user.password') }}</span>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
<div class='form-group'>
|
||||
<button type='submit' class='btn btn-default'>Setup!</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user