add scope to user views and cleanup
This commit is contained in:
parent
d89e17a6f2
commit
496dbc481d
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ class RequestOTPView(generics.CreateAPIView):
|
|||
class ChangePasswordView(generics.UpdateAPIView):
|
||||
permission_classes = [permissions.IsAuthenticated, IsAuthenticatedOrTokenHasScope]
|
||||
serializer_class = ChangePasswordSerializer
|
||||
required_scopes = []
|
||||
required_scopes = ["accounts.account:change_password"]
|
||||
model = User
|
||||
|
||||
def get_object(self, queryset=None):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue