add passwordrules with pattern and add birdate to locales

This commit is contained in:
LelouchFR 2026-03-16 12:05:52 +00:00
parent 2ca4939a14
commit 3acc5a9c4c
5 changed files with 49 additions and 2 deletions

25
.lando.yml Normal file
View File

@ -0,0 +1,25 @@
name: pretendo
recipe: lamp
config:
php: '8.3'
via: apache:2.4
webroot: .
database: mongo:8.0
xdebug: false
services:
phpmyadmin:
type: phpmyadmin
hosts:
- mongo8
mongodb:
type: mongo:8.0
redis:
type: redis
portforward: true
node:
type: node
build:
- yarn install
tooling:
yarn:
service: node

20
docker-compose.yml Normal file
View File

@ -0,0 +1,20 @@
version: '3.8'
services:
app:
build: .
ports:
- "3000:3000"
environment:
- MONGODB_URI=mongodb://mongo:27017/pretendo
depends_on:
- mongo
mongo:
image: mongo:6
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
volumes:
mongo_data:

View File

@ -330,6 +330,7 @@
"confirmPassword": "Confirm password",
"email": "Email",
"miiName": "Mii name",
"birthdate": "Birthdate",
"forgotPassword": "Forgot your password?",
"registerPrompt": "Don't have an account?",
"loginPrompt": "Already have an account?"

View File

@ -368,6 +368,7 @@
"confirmPassword": "Confirmez le mot de passe",
"email": "Email",
"miiName": "Surnom du Mii",
"birthdate": "Date de naissance",
"forgotPassword": "Mot de passe oublié?",
"registerPrompt": "Pas encore inscrit?"
},

View File

@ -24,13 +24,13 @@
<input name="mii_name" id="mii_name" value="{{ mii_name }}" maxlength=10 required>
</div>
<div>
<label for="birthday">Birthday</label> {{! TODO - Add this to weblate, hard-coding for now to just push it out }}
<label for="birthday">{{ locale.account.loginForm.birthdate }}</label>
<input type="date" id="birthday" name="birthday">
</div>
<br>
<div>
<label for="password">{{ locale.account.loginForm.password }}</label>
<input name="password" id="password" type="password" autocomplete="new-password" minlength="6" maxlength="16" required>
<input name="password" id="password" type="password" autocomplete="new-password" minlength="6" maxlength="16" passwordrules="minlength: 6; maxlength: 16; max-consecutive: 2; required: lower; required: upper; required: digit; allowed: [!&quot;$%&'()*+,./:;<=>?@[\^_`{|}~]];" pattern="[A-Za-z\d\!&quot;\$\%\&\'\(\)\*\+\,\.\/\:\;\<\=\>\?\@\[\\\^\_\`\{\|\}\~\]]{6,16}" required>
</div>
<div>
<label for="password_confirm">{{ locale.account.loginForm.confirmPassword }}</label>