-
Notifications
You must be signed in to change notification settings - Fork 799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[frontend/backend] Adds account status and lockout functionality by expire date #3303
[frontend/backend] Adds account status and lockout functionality by expire date #3303
Conversation
1d0de7a
to
d1a92af
Compare
d1a92af
to
16cc7fa
Compare
16cc7fa
to
2cb602f
Compare
ff9a07d
to
c280f3b
Compare
2cb602f
to
e937771
Compare
fa51528
to
78beb95
Compare
1131e36
to
00b2c49
Compare
e12789a
to
cf6edc3
Compare
c1fedb7
to
5093a3b
Compare
dc8cbc1
to
696705d
Compare
696705d
to
24f2a16
Compare
Can you also change the migration number (so that the migration file is the latest to run after merging on the main branch)? |
Behavior tested and works well :) |
4aa13cc
to
32905f1
Compare
@Archidoit - Something like this maybe? (just hardcoded onto page to get a screen grab of all options - obviously only one would be displayed) --> @ParamConstructor yes that's perfect. |
e556699
to
bf3d02d
Compare
@Archidoit - Status Display change is pushed - it is building now. Thank you for the feedback and peer review. |
containerstyle={fieldSpacingContainerStyle} | ||
> | ||
{settings.platform_user_statuses.map((s) => { | ||
return <MenuItem key={s.status} value={s.status}>{s.status}</MenuItem>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about translating account statuses?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Archidoit - give me a little bit - I will push a commit with the translations fixed - sorry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Archidoit - Corrected.
opencti-platform/opencti-front/src/private/components/settings/users/UserCreation.jsx
Show resolved
Hide resolved
opencti-platform/opencti-front/src/private/components/settings/users/User.tsx
Show resolved
Hide resolved
} | ||
> | ||
{settings.platform_user_statuses.map((s) => { | ||
return <MenuItem key={s.status} value={s.status}>{s.status}</MenuItem>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Archidoit - Corrected.
bf3d02d
to
27f3c4f
Compare
Thanks for all the changes! I'm going to do a final review. Can you just resolve the conflicts you have with the main branch before? Thanks |
e9b8388
to
e2b94fe
Compare
@Archidoit - Conflicts resolved, rebased, committed/pushed, and building now in the drone pipeline. |
Tested and works well 👍 |
- Change init to migration - Add dynamic definition of locked status and messages - Move session kill and dynamic change to backend - Change expiration scheduler to take care of expired users
e2b94fe
to
c2a5db1
Compare
Proposed changes
MIGRATION NOTE:
Upon startup of OpenCTI after these changes have been adopted:
opencti-platform/opencti-graphql/src/config/providers.js
. This function will "repair" / "seed" any User accounts that are missing a valid ENUM status for account_status to Active (default for default_initialize_account_status from conf/default.json)opencti-platform/opencti-graphql/src/initialization.js
at system startupRelated issues
Checklist
Further comments
None.