bugfix: error field in response changed to "message"
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -51,17 +51,12 @@ function handleResponse(response){
|
||||
}
|
||||
response.json().then(json => {
|
||||
console.log("handleResponse → error",json);
|
||||
if (json.error) show(json.error);
|
||||
if (json.message) show(json.message);
|
||||
if (json.data.client_id) setText('client_id',json.data.client_id);
|
||||
if (json.data.parameter) setText('parameter',json.data.parameter);
|
||||
if (json.data.redirect_uri) setText('redirect_uri',json.data.redirect_uri);
|
||||
if (json.data.response_type)setText('response_type',json.data.response_type)
|
||||
});
|
||||
/*if (json.error != "invalid_request_uri"){
|
||||
var url = params.get('redirect_uri') + '?' + new URLSearchParams(json).toString();
|
||||
console.log('redirecting to '+url);
|
||||
redirect(url);
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user