Merge branch 'develop'

This commit is contained in:
Alice Gaudon 2021-01-25 17:54:36 +01:00
commit a6e822ec64
4 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "swaf",
"version": "0.23.3",
"version": "0.23.4",
"description": "Structure Web Application Framework.",
"repository": "https://eternae.ink/arisu/swaf",
"author": "Alice Gaudon <alice@gaudon.pro>",

View File

@ -5,7 +5,7 @@ import Migration from "../../db/Migration";
*/
export default class DropNameFromUsers extends Migration {
public async install(): Promise<void> {
await this.query('ALTER TABLE users DROP COLUMN name');
await this.query('ALTER TABLE users DROP COLUMN IF EXISTS name');
}
public async rollback(): Promise<void> {

View File

@ -7,7 +7,7 @@
{% block body %}
<div class="container">
<div class="panel">
<h2><i class="fas fa-user"></i> Personal information</h2>
<h2><i data-feather="user"></i> Personal information</h2>
{% if display_email_warning and emails | length <= 0 %}
{{ macros.message('warning', 'To avoid losing access to your account, please add an email address.') }}

View File

@ -37,7 +37,7 @@
{% set validation = validation[name] if validation[name] or null %}
{% set previousFormData = _locals.previousFormData() %}
{% set value = previousFormData[name] or value or validation.value or '' %}
{% set prefix = _locals.getFormPrefix() | default('no-') %}
{% set prefix = _locals.getFormPrefix() | default('') %}
{% if type == 'hidden' %}
{% if validation %}