Commit 85bc8e9
committed
fix(auth): remove insecure hardcoded admin creation from service
Removes the flawed logic that granted admin privileges to a user signing
up with a specific hardcoded email address. This was a security risk as
the service logic runs in all environments.
All new users created via the public API will now correctly and safely
be assigned only the 'standardUser' role. Privileged users like
administrators must be provisioned out-of-band (e.g., via data
fixtures), which is the correct and secure approach.1 parent 183c828 commit 85bc8e9
1 file changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
133 | | - | |
| 131 | + | |
134 | 132 | | |
135 | 133 | | |
136 | 134 | | |
| |||
188 | 186 | | |
189 | 187 | | |
190 | 188 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
196 | 192 | | |
197 | 193 | | |
198 | 194 | | |
| |||
0 commit comments