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

@ -68,7 +68,7 @@ class Database extends Model
*/
public function host()
{
return $this->belongsTo(DatabaseHost::class);
return $this->belongsTo(DatabaseHost::class, 'database_host_id');
}
/**