maatify/admin-portal-handler

1.1.0082 2024-09-28 05:35 UTC

This package is auto-updated.

Last update: 2024-09-28 05:35:42 UTC


README

Current version Packagist PHP Version Support Monthly Downloads Total Downloads Stars

PostValidatorJsonCode

maatify.dev Admin Portal Handler,我们团队所知

安装

composer require maatify/admin-portal-handler

重要

不要忘记使用 \App\DB\DBS\DbConnector;

不要忘记使用 \App\DB\DBS\DbLogger;

不要忘记使用 \App\DB\DBS\DbPortalHandler;

不要忘记使用 \App\DB\DBS\DbProjectHandler;

不要忘记使用 \App\Assist\AppFunctions

不要忘记使用 \App\Assist\Encryptions

不要忘记使用 \App\Assist\Jwt

不要忘记使用 \App\Assist\OpensslEncryption

不要忘记使用 \App\DB\Tables\Language\LanguagePortalRecord

不要忘记使用 \App\Assist\DefaultPassword

namespace App\Assist;

use Maatify\Functions\GeneralPasswordGenerator;

class DefaultPassword
{
    private static self $instance;

    public static function obj(): self
    {
        if (empty(self::$instance)) {
            self::$instance = new self();
        }

        return self::$instance;
    }

    public static function GenerateAdminDefaultPassword(): string
    {
        $password = GeneralPasswordGenerator::passwordGenerator(16, GeneralPasswordGenerator::allCharacters());
        return $password;
    }

    public static function GenerateCustomerDefaultPassword(): string
    {
        $password = GeneralPasswordGenerator::passwordGenerator(13, GeneralPasswordGenerator::allCharacters());
        return $password;
    }
}