@@ -122,19 +122,6 @@ Dcat.ready(function () {
// ajax表单提交
$('#login-form').form({
validate: true,
- success: function (data) {
- if (! data.status) {
- Dcat.error(data.message);
-
- return false;
- }
- Dcat.success(data.message);
- location.href = data.redirect;
});
</script>
@@ -243,7 +243,7 @@ class AuthController extends Controller
return $this->response()
->success(trans('admin.login_successful'))
- ->redirectToIntended($this->getRedirectPath())
+ ->locationToIntended($this->getRedirectPath())
->send();
}