2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-08-06 11:02:54 +02:00
|
|
|
# complexity of the required password for the three kinds of users (user, instructeur, admnistrateur)
|
2019-06-20 00:28:32 +02:00
|
|
|
# valid values are from 0 to 4, 0 means very simple, 4 means high level of complexity.
|
|
|
|
if !defined?(PASSWORD_MIN_LENGTH)
|
|
|
|
# PASSWORD_COMPLEXITY_FOR_USER = ENV.fetch('PASSWORD_COMPLEXITY_FOR_USER', '2').to_i
|
2019-08-12 16:40:06 +02:00
|
|
|
# PASSWORD_COMPLEXITY_FOR_INSTRUCTEUR = ENV.fetch('PASSWORD_COMPLEXITY_FOR_INSTRUCTEUR', '3').to_i
|
2019-06-20 00:28:32 +02:00
|
|
|
PASSWORD_COMPLEXITY_FOR_ADMIN = ENV.fetch('PASSWORD_COMPLEXITY_FOR_ADMIN', '4').to_i
|
|
|
|
# password minimum length
|
2024-09-09 15:40:54 +02:00
|
|
|
PASSWORD_MIN_LENGTH = ENV.fetch('PASSWORD_MIN_LENGTH', '12').to_i
|
2019-06-20 00:28:32 +02:00
|
|
|
end
|