diff --git a/package.json b/package.json index 9e6b3cf..a453599 100644 --- a/package.json +++ b/package.json @@ -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 ", diff --git a/src/auth/migrations/DropNameFromUsers.ts b/src/auth/migrations/DropNameFromUsers.ts index 1c7352a..bc3e0c5 100644 --- a/src/auth/migrations/DropNameFromUsers.ts +++ b/src/auth/migrations/DropNameFromUsers.ts @@ -5,7 +5,7 @@ import Migration from "../../db/Migration"; */ export default class DropNameFromUsers extends Migration { public async install(): Promise { - await this.query('ALTER TABLE users DROP COLUMN name'); + await this.query('ALTER TABLE users DROP COLUMN IF EXISTS name'); } public async rollback(): Promise { diff --git a/views/auth/account.njk b/views/auth/account.njk index 88c7bf0..bbbdd5f 100644 --- a/views/auth/account.njk +++ b/views/auth/account.njk @@ -7,7 +7,7 @@ {% block body %}
-

Personal information

+

Personal information

{% if display_email_warning and emails | length <= 0 %} {{ macros.message('warning', 'To avoid losing access to your account, please add an email address.') }} diff --git a/views/macros.njk b/views/macros.njk index 8396aea..e52ed06 100644 --- a/views/macros.njk +++ b/views/macros.njk @@ -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 %}