Projet

Général

Profil

« Précédent | Suivant » 

Révision 51eeb1fc

Ajouté par Josué Kouka il y a environ 8 ans

add Sezhame app settings (#9760)

Voir les différences:

mandayejs/applications.py
14 14
# You should have received a copy of the GNU Affero General Public License
15 15
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 16

  
17
from __future__ import unicode_literals
18

  
17 19
import os
18 20
from importlib import import_module
19 21

  
......
94 96
        }
95 97
    ]
96 98
    SITE_AUTH_CHECKER = 'js/test/auth.checker.js'
97
    SITE_AUTH_COOKIE_KEYS = [ 'test']
99
    SITE_AUTH_COOKIE_KEYS = ['test']
98 100
    SITE_FORCE_REDIRECT_URL = '/whatever'
99 101

  
100 102

  
......
267 269

  
268 270
    SITE_LOGOUT_LOCATOR = '#MENU_FAMILLE_QUITTER'
269 271

  
272

  
270 273
class ImuseFamilyMontpellier(ImuseFamily):
271 274
    SITE_LOGIN_PATH_PREFIX = '/montpellier/'
272 275

  
273 276

  
277
class Sezhame(AppSettings):
278
    SITE_LOGIN_PATH = '/sezhame/page/connexion-abonne?destination=user'
279

  
280
    SITE_LOCATORS = [
281
        {
282
            'id': '#edit-user',
283
            'label': 'Numero de cqrte',
284
            'name': 'edit-user',
285
            'kind': 'string',
286
            'required': True,
287
            'help': ''
288
        },
289
        {
290
            'id': '#edit-password',
291
            'label': 'Mot de passe',
292
            'name': 'edit-password',
293
            'kind': 'password',
294
            'required': True,
295
            'help': ''
296
        }
297
    ]
298

  
299
    SITE_AUTH_CHECKER = 'sezhame/js/auth.checker.js'
300

  
301
    SITE_AUTH_COOKIE_KEYS = [
302
        'SESSf36da25307ad6240a58ddd4f4b138952',
303
        'ASPSESSIONIDQSDRASTR'
304
    ]
305

  
306
    SITE_FORCE_REDIRECT_LOCATOR = '#dk-opac15-login-form'
307

  
mandayejs/static/sezhame/js/auth.checker.js
1
window.auth_success = function(){
2
    if (location.href.indexOf('/sezhame/users/'))
3
        return true;
4
    return false;
5
}

Formats disponibles : Unified diff