Skip to content

Commit

Permalink
Logins: increase the field to 255 characters
Browse files Browse the repository at this point in the history
It allows to use email as login.
The increase of the field into the database is made by
the jcommunity module 1.4.0-beta.1.
  • Loading branch information
laurentj committed Sep 7, 2023
1 parent 6c290e3 commit 8ca6a91
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lizmap/app/overloads/jcommunity/forms/registration.form.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
@link http://jelix.org
@licence http://www.gnu.org/licenses/gpl.html GNU General Public Licence, see LICENCE file
-->
<input ref="reg_login" required="true">
<input ref="reg_login" required="true" minlength="3" maxlength="255">
<label locale="jcommunity~account.form.login"/>
</input>

<input ref="reg_email" required="true" type="email">
<input ref="reg_email" required="true" type="email" maxlength="255">
<label locale="jcommunity~account.form.email"/>
</input>

Expand Down
2 changes: 1 addition & 1 deletion lizmap/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"php": ">=7.4",
"jelix/jelix": "dev-jelix-1.8.x",
"jelix/composer-module-setup": "^1.1.0",
"jelix/jcommunity-module": "~1.3.20",
"jelix/jcommunity-module": "1.4.0-beta.1",
"jelix/ldapdao-module": "~2.2.4",
"proj4php/proj4php": "~2.0.0",
"violet/streaming-json-encoder": "^1.1.5",
Expand Down
2 changes: 1 addition & 1 deletion lizmap/modules/lizmap/daos/user.dao.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</datasources>
<record>
<property name="login" fieldname="usr_login"
required="yes" datatype="string" maxlength="50" />
required="yes" datatype="string" maxlength="255" />

<property name="email" fieldname="usr_email"
datatype="string" required="yes" maxlength="255" />
Expand Down
2 changes: 1 addition & 1 deletion lizmap/modules/lizmap/forms/account_admin.form.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-->


<input ref="login" required="true" minlength="3" maxlength="50">
<input ref="login" required="true" minlength="3" maxlength="255">
<label locale="jcommunity~account.form.login"/>
</input>

Expand Down

0 comments on commit 8ca6a91

Please sign in to comment.