can change avatar -> provide avatar

This commit is contained in:
Marcin Łojewski
2018-07-07 09:27:20 +02:00
parent 5c702edee7
commit 49a9b2ed61
2 changed files with 9 additions and 9 deletions

View File

@@ -68,7 +68,7 @@ Name | Description | Details
**Password** | Password hash column. | Mandatory for user backend. **Password** | Password hash column. | Mandatory for user backend.
**Display name** | Display name column. | Optional. **Display name** | Display name column. | Optional.
**Active** | Flag indicating if user can log in. | Optional.<br/>Default: true. **Active** | Flag indicating if user can log in. | Optional.<br/>Default: true.
**Can change avatar** | Flag indicating if user can change its avatar. | Optional.<br/>Default: false. **Provide avatar** | Flag indicating if user can change its avatar. | Optional.<br/>Default: false.
**Salt** | Salt which is appended to password when checking or changing the password. | Optional. **Salt** | Salt which is appended to password when checking or changing the password. | Optional.
#### Group table #### Group table
@@ -108,13 +108,13 @@ If you don't have any database model yet you can use below tables (MySQL):
``` ```
CREATE TABLE sql_user CREATE TABLE sql_user
( (
username VARCHAR(16) PRIMARY KEY, username VARCHAR(16) PRIMARY KEY,
display_name TEXT NULL, display_name TEXT NULL,
email TEXT NULL, email TEXT NULL,
home TEXT NULL, home TEXT NULL,
password TEXT NOT NULL, password TEXT NOT NULL,
active TINYINT(1) NOT NULL DEFAULT '1', active TINYINT(1) NOT NULL DEFAULT '1',
can_change_avatar BOOLEAN NOT NULL DEFAULT FALSE provide_avatar BOOLEAN NOT NULL DEFAULT FALSE
); );
CREATE TABLE sql_group CREATE TABLE sql_group

View File

@@ -148,7 +148,7 @@ function print_select_options(
print_text_input($l, "db-table-user-column-password", "Password", $_['db.table.user.column.password']); print_text_input($l, "db-table-user-column-password", "Password", $_['db.table.user.column.password']);
print_text_input($l, "db-table-user-column-name", "Display name", $_['db.table.user.column.name']); print_text_input($l, "db-table-user-column-name", "Display name", $_['db.table.user.column.name']);
print_text_input($l, "db-table-user-column-active", "Active", $_['db.table.user.column.active']); print_text_input($l, "db-table-user-column-active", "Active", $_['db.table.user.column.active']);
print_text_input($l, "db-table-user-column-avatar", "Can change avatar", $_['db.table.user.column.avatar']); print_text_input($l, "db-table-user-column-avatar", "Provide avatar", $_['db.table.user.column.avatar']);
print_text_input($l, "db-table-user-column-salt", "Salt", $_['db.table.user.column.salt']); ?> print_text_input($l, "db-table-user-column-salt", "Salt", $_['db.table.user.column.salt']); ?>
</fieldset> </fieldset>
</div> </div>