Kaydet (Commit) 1625f402 authored tarafından Baran Sekin's avatar Baran Sekin

Fixed 403 problem

üst f84ed388
......@@ -173,7 +173,7 @@ class SSHConnector implements Connector
return self::request($url,$params,$retry -1 );
}else{
// If nothing works, abort.
abort(403,"Anahtarınız ile sunucuya giriş yapılamadı");
abort(402,"Anahtarınız ile sunucuya giriş yapılamadı");
}
}
// Simply parse and return output.
......
......@@ -94,7 +94,7 @@ class WinRMConnector implements Connector
return self::request($url,$params,$retry -1 );
}else{
// If nothing works, abort.
abort(403,"Anahtarınız ile sunucuya giriş yapılamadı.");
abort(402,"Anahtarınız ile sunucuya giriş yapılamadı.");
}
}
......
@if(request()->wantsJson() || $_SERVER['REMOTE_ADDR'] == "127.0.0.1")
@php(respond(__($exception->getMessage()),201))
@else
@extends('layouts.app')
@section('content')
<h1 class="ml-auto">{{__($exception->getMessage())}}</h1>
@endsection
@endif
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment