#NEWLINE# def reset_token( self , **params ) : #NEWLINE# #INDENT# " Reset current token by POSTing 'login' and 'password'.\n\n        User's `Authorization` header value is returned in `WWW-Authenticate`\n        header.\n        " #NEWLINE# response = self . claim_token ( ** params ) #NEWLINE# if ( not self . user ) : #NEWLINE# #INDENT# return headers #NEWLINE# #UNINDENT# self . user . api_key . reset_token ( ) #NEWLINE# headers = remember ( self . request , self . user . username ) #NEWLINE# return JHTTPOk ( 'Registered' , headers = headers )