maximum_verification_attempts_per_ip = 10
maximum_verification_attempts_codes_count = 10
maximum_wrong_verification_code_per_email = 10
maximum_wrong_verification_code_per_phone = 10
maximum_wrong_password_attempt_per_customer_ip = 12
maximum_wrong_password_attempt_per_customer = 10
# maximum number of verification codes which can be saved in a verification_attempts record
# if length of verification codes array wants to exceeds this number, user will face an error
# ---------------------------------------------------------------------------

maximum_verification_attempt_attempts = 10
# maximum number of unsuccessfull attempts which a user with wrong verfication code can do in RegisterV API
# if the user try with wrong code more than this number he/she faces an error
# ---------------------------------------------------------------------------

maximum_wrong_password_attempts = 12
# maximum number of unsuccessfull attempts which a user with wrong email or password can do in login API
# if the user try with wrong email or password more than this number he/she faces an error
# ---------------------------------------------------------------------------

user_jwt_expire_time_in_days = 30
# this number is the lifetime of a jwt record in days
# a jwt record will expire after these days
# ---------------------------------------------------------------------------


maximum_change_password_codes_count = 3
# maximum number of verification codes which can be saved in a change password record
# if length of verification codes array wants to exceeds this number, user will face an error
# ---------------------------------------------------------------------------


maximum_change_password_attempts = 6
# maximum number of unsuccessfull attempts which a user can do in changing password
# if the user try more than this number he/she faces an error
# ---------------------------------------------------------------------------
maximum_size_for_authenticate_poster_MG = 5  # MG


maximum_side_size_for_authenticate_image = 2048  # px


maximum_side_size_for_authenticate_poster = 2048  # px


allowed_formats_for_authenticate_poster = (
    '.jpg', '.JPG', '.jpeg', '.png', '.PNG')

maximum_side_size_compress_for_authenticate_profile_image = 256
maximum_side_size_compress_for_authenticate_profile_image_thumbnail = 128
maximum_side_size_compress_for_authenticate_poster = 512
maximum_side_size_compress_for_authenticate_poster_thumbnail = 256
allowed_formats_for_authenticate_profile_image = (
    '.jpg', '.JPG', '.jpeg', '.png', '.PNG')
# allowed image formats for profile image defines in this tuple
maximum_profile_image_size_MG = 5  # MG
# maximum size of original image for user profile when he/she wants to upload it.
# this number is in KBs
minimum_profile_image_size = 5
# minimum size of original image for user profile when he/she wants to upload it.
# if original image size is less than this number, it doesn't compressed and copied to image thumbnail
# this number is also in KBs
compressed_profile_image_height_width = (100, 100)
# height & width of compressed image for image_thumbnail
# it should be a tuple with 2 items: first for height & second for width
compressed_profile_image_quality = 90
# quality of compressed image for image_thumbnail
# it should be a number between 1 to 100 and it means the percentage of original image quality


# ----------------------------------------------------------------------------
# ----------- All scheduler variables defining below -------------------------
# ----------------------------------------------------------------------------

temp_user_cleanup_offset_hours = 24
# you want to clear temp users records which their created_at is less than some hours before now.
# this variable is responsible for defining that hours.
# --------------------------------------------------------------------------


wrong_password_attempt_cleanup_offset_hours = 24
# you want to clear wrong password attempts records which their created_at is less than some hours before now.
# this variable is responsible for defining that hours.
# --------------------------------------------------------------------------


change_password_attempt_cleanup_offset_hours = 24
# you want to clear wrong password attempts records which their created_at is less than some hours before now.
# this variable is responsible for defining that hours.
# --------------------------------------------------------------------------


status_codes_for_logging = [500]
# This list is the response status codes which the logger of project logs that responses
# ---------------------------------------------------------------------------
