Commit cbbd78a
feat: add DISABLE_EMAIL_SIGN_UP to control email and OAuth signups separately
Previously, DISABLE_SIGN_UP controlled both email and OAuth signups together.
This change introduces DISABLE_EMAIL_SIGN_UP to allow more granular control:
- DISABLE_EMAIL_SIGN_IN: Disables email/password authentication entirely
- DISABLE_EMAIL_SIGN_UP: Disables email/password signups only (allows existing users to sign in)
- DISABLE_SIGN_UP: Disables OAuth signups only (Google, GitHub, Microsoft)
This enables use cases like:
- Allow OAuth signups but block email signups
- Require users to authenticate via corporate SSO while blocking email registration
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 28a99bf commit cbbd78a
2 files changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
84 | 88 | | |
85 | 89 | | |
86 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
105 | | - | |
106 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
| |||
0 commit comments