-
-
Notifications
You must be signed in to change notification settings - Fork 459
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement 'master database user for customers'; fixes #1227
Signed-off-by: Michael Kaufmann <[email protected]>
- Loading branch information
Showing
10 changed files
with
226 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
lib/formfields/customer/mysql/formfield.mysql_global_user.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
|
||
use Froxlor\Settings; | ||
use Froxlor\System\Crypt; | ||
|
||
/** | ||
* This file is part of the Froxlor project. | ||
* Copyright (c) 2010 the Froxlor Team (see authors). | ||
* | ||
* For the full copyright and license information, please view the COPYING | ||
* file that was distributed with this source code. You can also view the | ||
* COPYING file online at https://files.froxlor.org/misc/COPYING.txt | ||
* | ||
* @copyright (c) the authors | ||
* @author Froxlor team <team@froxlor.org> (2010-) | ||
* @license GPLv2 https://files.froxlor.org/misc/COPYING.txt | ||
* @package Formfields | ||
*/ | ||
|
||
return [ | ||
'mysql_global_user' => [ | ||
'title' => lng('mysql.edit_global_user'), | ||
'self_overview' => ['section' => 'mysql', 'page' => 'mysqls'], | ||
'sections' => [ | ||
'section_a' => [ | ||
'title' => lng('mysql.edit_global_user'), | ||
'fields' => [ | ||
'username' => [ | ||
'label' => lng('login.username'), | ||
'value' => $userinfo['loginname'], | ||
'type' => 'text', | ||
'readonly' => true | ||
], | ||
'mysql_password' => [ | ||
'label' => lng('login.password'), | ||
'type' => 'password', | ||
'autocomplete' => 'off', | ||
'mandatory' => true, | ||
'next_to' => [ | ||
'mysql_password_suggestion' => [ | ||
'next_to_prefix' => lng('customer.generated_pwd') . ':', | ||
'type' => 'text', | ||
'visible' => (Settings::Get('panel.password_regex') == ''), | ||
'value' => Crypt::generatePassword(), | ||
'readonly' => true | ||
] | ||
] | ||
] | ||
] | ||
] | ||
] | ||
] | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.