add Sezhame app settings (#9760)
This commit is contained in:
parent
d7e2f1ec6d
commit
51eeb1fccd
|
@ -14,6 +14,8 @@
|
|||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import os
|
||||
from importlib import import_module
|
||||
|
||||
|
@ -94,7 +96,7 @@ class Test(AppSettings):
|
|||
}
|
||||
]
|
||||
SITE_AUTH_CHECKER = 'js/test/auth.checker.js'
|
||||
SITE_AUTH_COOKIE_KEYS = [ 'test']
|
||||
SITE_AUTH_COOKIE_KEYS = ['test']
|
||||
SITE_FORCE_REDIRECT_URL = '/whatever'
|
||||
|
||||
|
||||
|
@ -267,7 +269,39 @@ class ImuseFamily(Imuse):
|
|||
|
||||
SITE_LOGOUT_LOCATOR = '#MENU_FAMILLE_QUITTER'
|
||||
|
||||
|
||||
class ImuseFamilyMontpellier(ImuseFamily):
|
||||
SITE_LOGIN_PATH_PREFIX = '/montpellier/'
|
||||
|
||||
|
||||
class Sezhame(AppSettings):
|
||||
SITE_LOGIN_PATH = '/sezhame/page/connexion-abonne?destination=user'
|
||||
|
||||
SITE_LOCATORS = [
|
||||
{
|
||||
'id': '#edit-user',
|
||||
'label': 'Numero de cqrte',
|
||||
'name': 'edit-user',
|
||||
'kind': 'string',
|
||||
'required': True,
|
||||
'help': ''
|
||||
},
|
||||
{
|
||||
'id': '#edit-password',
|
||||
'label': 'Mot de passe',
|
||||
'name': 'edit-password',
|
||||
'kind': 'password',
|
||||
'required': True,
|
||||
'help': ''
|
||||
}
|
||||
]
|
||||
|
||||
SITE_AUTH_CHECKER = 'sezhame/js/auth.checker.js'
|
||||
|
||||
SITE_AUTH_COOKIE_KEYS = [
|
||||
'SESSf36da25307ad6240a58ddd4f4b138952',
|
||||
'ASPSESSIONIDQSDRASTR'
|
||||
]
|
||||
|
||||
SITE_FORCE_REDIRECT_LOCATOR = '#dk-opac15-login-form'
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
window.auth_success = function(){
|
||||
if (location.href.indexOf('/sezhame/users/'))
|
||||
return true;
|
||||
return false;
|
||||
}
|
Reference in New Issue