Merge branch 'hotfix/user' into develop
This commit is contained in:
@@ -126,9 +126,14 @@ class Util
|
||||
|
||||
public static function mask($str)
|
||||
{
|
||||
$length = strlen($str);
|
||||
|
||||
if(empty($str)){
|
||||
return '';
|
||||
}
|
||||
if($length <= 6){
|
||||
return $str;
|
||||
}
|
||||
return substr($str, 0, 3) . '****' . substr($str, -4);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user