/
fr1n1ss
/
PasswordManager
Обзор
Документация
Войти
/
fr1n1ss
/
PasswordManager
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
PasswordManagerAPI/Services/UserInputLimits.cs
22 строки
864 B
Dmitry Kiselyov
improve auth recovery, sessions, and mobile UI
29 май 2026, 09:23
29 май 2026, 09:23
72a5a2b
Код
Авторство
О чём код?
namespace PasswordManagerAPI.Services { public static class UserInputLimits { public const int UsernameMaxLength = 25; public const int EmailMaxLength = 256; public const int AuthPasswordMaxLength = 128; public const int MasterPasswordVerifierMaxLength = 512; public const int AccountServiceNameMaxLength = 450; public const int AccountLoginMaxLength = 450; public const int AccountPasswordPayloadMaxLength = 4096; public const int AccountUrlMaxLength = 2048; public const int AccountDescriptionMaxLength = 1000; public const int NoteTitleMaxLength = 100; public const int NoteContentPayloadMaxLength = 12000; public static bool IsTooLong(string? value, int maxLength) { return value != null && value.Length > maxLength; } } }