@@ -138,9 +138,13 @@ class ApiAccountsActivateUsernameTempIdentifier(APIView):
138138
139139 --------------------
140140
141- This is a request to activate a new account. This is open to anyone to
142- activate a new account, as long as they have a valid token generated by this host. This allows
143- other users to act as the verification layer in addition to the system.
141+ This endpoint is a GET request to activate a new account.
142+ To activate an account during registration we receive an email or a
143+ temporary identifier to authenticate and activate account. This endpoint
144+ will check the validity of the provided temporary identifier for a specific
145+ user account. This is open to anyone to activate a new account, as long as
146+ they have a valid token generated by this host. This allows other users
147+ to act as the verification layer in addition to the system.
144148
145149 """
146150
@@ -174,18 +178,15 @@ class ApiAccountsActivateUsernameTempIdentifier(APIView):
174178 @swagger_auto_schema (
175179 manual_parameters = auth ,
176180 responses = {
177- 201 : "Account has been authorized." ,
178- 208 : "Account has already been authorized." ,
181+ 200 : "Account has been activated." ,
179182 403 : "Requestor's credentials were rejected." ,
180- 424 : "Account has not been registered." ,
181183 },
182184 tags = ["Account Management" ],
183185 )
184186 def get (self , request , username : str , temp_identifier : str ):
185187 check_get (request )
186188 checked = None
187189 if checked is None :
188- # Pass the request to the handling function
189190 return GET_activate_account (
190191 username = username , temp_identifier = temp_identifier
191192 )
0 commit comments