Fixes bug causing MySQL user accounts to be corrupted when resetting a password via the panel.

closes #352
This commit is contained in:
Dane Everitt 2017-03-17 17:17:36 -04:00
parent d5352e2b1e
commit 202dd52e2b
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 23 additions and 11 deletions

View file

@ -56,7 +56,7 @@
<td class="middle">{{ $database->database }}</td>
<td class="middle">{{ $database->username }}</td>
<td class="middle"><code data-attr="set-password">{{ Crypt::decrypt($database->password) }}</code></td>
<td class="middle"><code>{{ $database->a_host }}:{{ $database->a_port }}</code></td>
<td class="middle"><code>{{ $database->host->host }}:{{ $database->host->port }}</code></td>
@can('reset-db-password', $server)
<td>
<button class="btn btn-xs btn-primary pull-right" data-action="reset-password" data-id="{{ $database->id }}"><i class="fa fa-fw fa-refresh"></i> @lang('server.config.database.reset_password')</button>