-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add the ability to disable sign-in/sign-up in the UI #7348
Add the ability to disable sign-in/sign-up in the UI #7348
Conversation
…ponents based on server API
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #7348 +/- ##
===========================================
+ Coverage 83.42% 83.56% +0.13%
===========================================
Files 374 375 +1
Lines 39779 39762 -17
Branches 3729 3734 +5
===========================================
+ Hits 33186 33226 +40
+ Misses 6593 6536 -57
|
…ttps://github.com/opencv/cvat into mk/add_ability_to_disable_sign_in_sign_up_on_client
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.
LGTM, just several minor comments
cvat-core/src/index.ts
Outdated
@@ -65,6 +65,7 @@ export default interface CVATCore { | |||
setAuthData: any; | |||
removeAuthData: any; | |||
installedApps: any; | |||
apiSchema: any; |
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.
Will it be possible to add something more specific than any
?
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.
We do not need to define precise type for the whole scheme, but at least what we should do it for things we use on client
{isPasswordResetEnabled && ( | ||
<Route | ||
exact | ||
path='/auth/password/reset/confirm' | ||
component={ResetPasswordPageConfirmComponent} | ||
/> | ||
)} |
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.
These routes still rendered below (lines 577-582)
…ttps://github.com/opencv/cvat into mk/add_ability_to_disable_sign_in_sign_up_on_client
Co-authored-by: Boris Sekachev <boris.sekachev@yandex.ru>
Now that this has been merged, how can I disable sign-ups in the UI? |
I have the same question - could either of you provide guidance on disabling self sign-up, or direct us to the relevant section in the documentation? @Marishka17 @bsekachev |
Would also like to know how to disable the self sign up |
Hello, @egeekial, @UUVtQD, @davidblom603, you can just comment out the corresponding endpoint on the server and rebuild CVAT from the source ( |
Thanks! Works great. |
Motivation and context
How has this been tested?
Checklist
develop
branch(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)
License
Feel free to contact the maintainers if that's a concern.