mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 07:04:07 +01:00
* [ADD] Improved tracking handling.
* [MOD] Improved login process workflow.
This commit is contained in:
@@ -25,7 +25,6 @@
|
||||
namespace SP\DataModel;
|
||||
|
||||
use SP\Core\Exceptions\InvalidArgumentException;
|
||||
use SP\Core\Exceptions\SPException;
|
||||
|
||||
/**
|
||||
* Class TrackData
|
||||
@@ -152,9 +151,9 @@ class TrackData extends DataModelBase
|
||||
} elseif (strlen($ip) > 4) {
|
||||
$this->ipv6 = $ip;
|
||||
} elseif ($ip === false) {
|
||||
debugLog(sprintf('%s : %s', __('IP inválida', true), $track_ip));
|
||||
debugLog(sprintf('%s : %s', __('IP inválida'), $track_ip));
|
||||
|
||||
throw new InvalidArgumentException(SPException::ERROR, __('IP inválida'), $track_ip);
|
||||
throw new InvalidArgumentException(__u('IP inválida'), InvalidArgumentException::ERROR, $track_ip);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user