Skip to content

Commit b75696c

Browse files
authored
Merge pull request #31 from stats4sd/dev
Password minimum to match ODK Central
2 parents 435f6ea + d6c22d7 commit b75696c

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Auto Assign Issues to Internal IT Planning Board
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
add-to-project:
9+
name: Add issue to project
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/add-to-project@v0.4.0
13+
with:
14+
project-url: https://github.com/orgs/stats4sd/projects/10
15+
github-token: ${{ secrets.PROJECT_ACCESS_TOKEN }}

src/Filament/App/Pages/Programregister.php

+6
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,10 @@ protected function getEmailFormComponent(): Component
9999
->unique($this->getUserModel())
100100
->readOnly();
101101
}
102+
103+
protected function getPasswordFormComponent(): Component
104+
{
105+
return parent::getPasswordFormComponent()
106+
->rule('min:10', 'Password must be at least 10 characters long.');
107+
}
102108
}

src/Filament/App/Pages/Register.php

+6
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,10 @@ protected function getEmailFormComponent(): Component
8888
->unique($this->getUserModel())
8989
->readOnly();
9090
}
91+
92+
protected function getPasswordFormComponent(): Component
93+
{
94+
return parent::getPasswordFormComponent()
95+
->rule('min:10', 'Password must be at least 10 characters long.');
96+
}
9197
}

src/Filament/App/Pages/Roleregister.php

+6
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,10 @@ protected function getEmailFormComponent(): Component
9292
->unique($this->getUserModel())
9393
->readOnly();
9494
}
95+
96+
protected function getPasswordFormComponent(): Component
97+
{
98+
return parent::getPasswordFormComponent()
99+
->rule('min:10', 'Password must be at least 10 characters long.');
100+
}
95101
}

0 commit comments

Comments
 (0)