- 
  Notifications
 You must be signed in to change notification settings 
- Fork 1.3k
Commit 8e02e09
Block new user signups when Classic PAYG sunset is enabled:
- Add isUserSignupBlockedBySunset() function in featureflags.ts
 - Checks if sunset is enabled for the installation
 - Exempts dedicated installations
 - Blocks all signups (new users don't have orgs/roles yet)
- Add signup blocking in generic-auth-provider.ts callback
 - Check before createNewUser() is called
 - Redirect blocked signups to https://app.ona.com/login
 - Log blocked signup attempts
This complements the existing login and workspace operation blocks
from CLC-2032, closing the signup path that was previously unblocked.
Co-authored-by: Ona <no-reply@ona.com>
1 parent 7421edc commit 8e02e09
File tree
2 files changed
+24
-0
lines changed- components/server/src- auth
- util
 
2 files changed
+24
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
|  | |||
| 37 | 37 |  | |
| 38 | 38 |  | |
| 39 | 39 |  | |
| 40 | + | ||
| 40 | 41 |  | |
| 41 | 42 |  | |
| 42 | 43 |  | |
|  | |||
| 431 | 432 |  | |
| 432 | 433 |  | |
| 433 | 434 |  | |
| 435 | + | ||
| 436 | + | ||
| 437 | + | ||
| 438 | + | ||
| 439 | + | ||
| 440 | + | ||
| 441 | + | ||
| 434 | 442 |  | |
| 435 | 443 |  | |
| 436 | 444 |  | |
|  | |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
|  | |||
| 85 | 85 |  | |
| 86 | 86 |  | |
| 87 | 87 |  | |
| 88 | + | ||
| 89 | + | ||
| 90 | + | ||
| 91 | + | ||
| 92 | + | ||
| 93 | + | ||
| 94 | + | ||
| 95 | + | ||
| 96 | + | ||
| 97 | + | ||
| 98 | + | ||
| 99 | + | ||
| 100 | + | ||
| 101 | + | ||
| 102 | + | ||
| 103 | + | ||
0 commit comments