Aller au contenu
  • Pas encore inscrit ?

    Pourquoi ne pas vous inscrire ? C'est simple, rapide et gratuit.
    Pour en savoir plus, lisez Les avantages de l'inscription... et la Charte de Zébulon.
    De plus, les messages que vous postez en tant qu'invité restent invisibles tant qu'un modérateur ne les a pas validés. Inscrivez-vous, ce sera un gain de temps pour tout le monde, vous, les helpeurs et les modérateurs ! :wink:

Messages recommandés

Posté(e)

J'ai essayé en mode sans échec, ça ne passe pas non plus.

J'ai cliqué sur le petit icône Orange à coté de la barre d'adresse (située en haut de Firefox) pendant qu'il recherche la page orange d'idenfication et il dit : "Ce site ne fournit aucune information concernant son identité"

(ça peut peut-être vous aider à mieux cerner mon problème !!! Enfin, je le souhaite !!!!

Posté(e)

Je suis allée regarder sur la console d'erreurs de Firefox et voilà ce qu'il y a :

 

tab.removeClass('activeTab_w');

})

this.setStyle('.tabSplitter', 'visibility', 'visible');

this.elementGroup.show(null);

}

})

var OtherUserPanel = Panel.extend({

initialize: function(container, primary) { // primary must be shown if no user exists

this.parent(container);

this.primary = primary;

Context.addEvent('onChange', function() {

var display = !Context.Error && !Context.isLocked() && this.primary == !Context.selectedUser;

this.setDisplay(display);

if (display && this.primary) {

this.panelGroup.arrangeFocus();

}

}.bind(this))

var mainElement = new TemplatePanel('anotherUserPanelTemplate').element;

mainElement.injectInside(this.$c('addUserPanel'));

this.userIdPanel = this.$c('userIdPanel');

this.passwordPanel = this.$c('passwordPanel');

this.userIdPanel.form = new Form(this.userIdPanel, this.onStatus.bind(this) , Cfg.URL.checkUser, this.idValidator.bind(this));

this.passwordPanel.form = new Form(

this.passwordPanel, this.onAuth.bind(this), Cfg.URL.authentication, this.paswordValidator.bind(this), urlSSL, "ssl0user");

this.panelGroup = new ElementGroup([this.userIdPanel, this.passwordPanel]);

this.addCheckbox = this.$c('addCheckBox');

this.$s('.changeIdButton').addEvent('click', function() {

this.show(this.userIdPanel);

}.bind(this));

this.$s('.passwordReminder').addEvent('click', function() {

new PasswordReminder(this.reminderConfig).remind();

}.bind(this))

FocusManager.registerFocusListener(this.element, function(focused) {

ShadowDecorator.toggleShadow(this.element, focused ? 'shadow2' : primary ? 'shadow1' : 'shadow0');

if (!(focused || this.firstAccess)) {

this.form.displayMessage(null);

}

return this.panelGroup.current.getElement('.textInput');

}.bind(this))

this.show(this.userIdPanel);

},

show: function(panel) {

this.panelGroup.show(panel);

this.form = panel.form;

if (panel == this.userIdPanel) {

this.firstAccess = false;

}

},

setEmailMode: function() {

this.emailMode = true;

this.getElements('.panelTitle').setHTML($message('pleaseSignIn'));

this.getElements('.idTitle').setHTML($message('enterEmail'));

this.show(this.userIdPanel);

},

idValidator: function() {

var userId = this.userIdPanel.form.getValue('credential');

var error;

userId = userId.trim();

if (userId=="")

{

error = 'empty_login_field';

}

else

{

var msisdn = /^[\s\-\.\(\,\+]*\d[\s\-\.\d\)\,\+]*$/.test(userId);

if (msisdn && !this.emailMode)

{

userId =userId.replace(/[\s\-\.\,\(\)\+]/g, '');

if (!/^\d{10,13}$/.test(userId))

{

error = 'msisdn_wrong_format';

}

else

{

var isReunion = /^0692/.test(userId) || /^33692/.test(userId) || /^692/.test(userId)

|| /^0693/.test(userId) || /^33693/.test(userId) || /^693/.test(userId);

if (isReunion)

Context.proceed(Cfg.URL.callUrlReunion);

this.userIdPanel.form.setValue('credential', userId);

}

}

else

{

if (!/^.{1,64}@([0-9a-z_\-]+\.)+[0-9a-z_]{2,4}$/.test(userId))

{

error = 'email_wrong_format';

}

else

this.userIdPanel.form.setValue('credential', userId);

}

}

if (error) {

this.onStatus.delay(20, this, [{userId: userId, status: error}]);

}

return !error;

},

paswordValidator: function(form) {

if (this.firstAccess) {

if (this.$s('.agreeCheckBox').checked) {

this.reminderConfig.firstAccess = this.firstAccess = false;

} else {

var balloon = new Balloon(new TemplatePanel('shouldAgreeTemplate'));

balloon.showFor.delay(200, balloon, [form.submitButton.element, -44]);

return false;

}

}

var pwd = this.passwordPanel.form.getValue('pwd');

if (pwd =="")

{

var helpPanel = new TemplatePanel('emptyPasswordTemplate');

ReminderLink.applyTo(helpPanel, this.reminderOptions);

this.passwordPanel.form.displayMessage(helpPanel, 200);

this.passwordPanel.form.arrangeFocus();

this.onPasswordReminder(helpPanel);

return false;

}

return true;

},

onStatus: function(userStatus) {

userStatus = new UserStatus(userStatus);

this.userIdPanel.form.setInProgress(false);

var userId=this.$s('input[name=credential]').value;

var status = userStatus.status;

var pouette = {

email : null,

id : this.$s('input[name=credential]').value,

memorized : false,

name : this.$s('input[name=credential]').value,

phone : this.$s('input[name=credential]').value,

photoUrl : null,

signedIn: false,

thumbnailUrl : null,

type : 'M'

}

var user = new User(pouette);

if (OtherUserPanel.idErrors.contains(status)) {

this.userIdPanel.form.displayMessage(new TemplatePanel(status), 200);

this.userIdPanel.form.arrangeFocus();

} else {

var form = this.passwordPanel.form;

this.show(this.passwordPanel);

this.doTemplate = ((status == 'ENR') || (status == 'ENR14') || (status == 'ENR15') || (status == 'ENR17') || (status == 'UNKNOWN_NSRU')) ;

this.enroll = (status == 'ENR');

this.enroll14 = (status == 'ENR14');

this.enroll15 = (status == 'ENR15');

this.enroll17 = (status == 'ENR17');

this.firstAccess = this.enroll || this.enroll14 || this.enroll15;

this.reminderConfig = {

user: user,

form: form,

arrowOffset: 200,

firstAccess: this.firstAccess

}

form.setValue('credential', userId);

if (userId.length>35)

{

userId = userId.substr(0,32) + '...';

}

this.setContent('.idLabel', userId);

if (this.doTemplate)

{

if (this.enroll)

{

var message = new TemplatePanel('passwordTextedTemplate');

message.setDisplay('.agreement', true);

ReminderLink.applyTo(message, this.reminderConfig);

form.displayMessage(message, 200);

}

else if(this.enroll14)

{

var message = new TemplatePanel('passwordTextedTemplate14');

message.setDisplay('.agreement', true);

ReminderLink.applyTo(message, this.reminderConfig);

form.displayMessage(message, 200);

}

else if(this.enroll15)

{

var message = new TemplatePanel('passwordTextedTemplate15');

message.setDisplay('.agreement', true);

ReminderLink.applyTo(message, this.reminderConfig);

form.displayMessage(message, 200);

}

else if(this.enroll17)

{

var message = new TemplatePanel('passwordTextedTemplate17');

form.displayMessage(message, 200);

}

else

{

var message1 = new TemplatePanel('UNKNOWN_NSRU');

ReminderLink.applyTo(message1, this.reminderConfig);

form.displayMessage(message1, 200);

}

}

var ind = Context.indexOf(user);

var bIP=false;

if (ind !=-1)

{

if (Context.users[ind].isHousehold)

bIP =true;

}

else

{

if ((Context.selectedUser ) && (Context.selectedUser.id == user.id) && (Context.selectedUser.isHousehold))

bIP =true;

}

this.setDisplay('.addToList', !bIP);

this.setDisplay('.addToListIP', bIP);

this.setProperty('.addCheckBox', 'checked', false);

}

},

onAuth: function(result) {

result = new AuthenticationResult(result);

if (result.success) {

if (result.closeMobile)

{

Context.serviceUrl = result.serviceUrl;

Context.proceedQuality(result.delayTime*1000,result.serviceUrl, undefined, this.$c('posQuality'));

}

else

Context.proceedQuality(0,result.serviceUrl, this.addCheckbox.checked ? this.reminderConfig.user.id : undefined, this.$c('posQuality'));

} else {

if (result.serviceUrl!=null)

{

Context.proceedQuality(0,result.serviceUrl,undefined, this.$c('posQuality'));

}

else

{

this.passwordPanel.form.setInProgress(false);

var message;

if( result.message == 'DB_EMPTY' ) {

message = new TemplatePanel('dbEmptyPasswordTemplate');

}

else {

message = new TemplatePanel('wrongPasswordTemplate');

ReminderLink.applyTo(message, this.reminderConfig);

this.onPasswordReminder(message);

}

var form = this.passwordPanel.form;

form.setValue('pwd', '');

form.displayMessage(message);

form.arrangeFocus();

}

}

},

onPasswordReminder : function(templateFeature)

{

templateFeature.getElements('.passwordReminder1')[0].addEvent('click', function() {

var user = {

id: this.userIdPanel.form.getValue('credential')

}

this.reminderConfig = {

user: user,

form: this.passwordPanel.form,

arrowOffset: 200,

firstAccess: false

}

var pRmind = new PasswordReminder(this.reminderConfig);

pRmind.opt = this.reminderConfig

pRmind.remind();

}.bind(this));

}

})

OtherUserPanel.idErrors = [

'msisdn_wrong_format', 'empty_login_field', 'msisdn_MCO_number', 'msisdn_non_Orange', 'email_wrong_format',

'enrollOrangeFailed', 'enrollForNSRU', 'UNKNOWN_NSRU', 'email_orange_unknown', 'email_NSRU_unknown_eSSO', 'email_NSRU_unknown_not_eSSO']

var RegisterTabPanel = TabPanel.extend({

initialize: function() {

this.parent('registerPanel');

Context.addEvent('onChange', function() {

this.setDisplay(!Context.isLocked());

this.setDisplay('.registerNowTabConnected', !!Context.selectedUser);

this.setDisplay('.registerNowTab', !Context.selectedUser);

}.bind(this));

this.getElements('.closeHelpTab').addEvent('click', this.closeAllTabs.bind(this));

},

initElement: function(element) {

ShadowDecorator.decorate(element.setStyle('position', 'relative'), 'shadow3');

}

})

var OtherServicePanel = TabPanel.extend({

initialize: function(container, primary, keepOpenedOnFocusLost) {

var contentContainer = $(container).getElement('.otherServiceContent');

$clone('otherServiceTemplate').injectInside(contentContainer);

this.parent(container, keepOpenedOnFocusLost);

this.getElements('.helpLink').addEvent('click', function(event) {

var content = new TemplatePanel('otherServiceHelpTemplate');

new Balloon(content).showFor(event.target);

event.stop();

}.bindWithEvent(this));

this.openIdTab = new OpenIdTab(this.$c('openIdAuthTab'));

Context.addEvent('onChange', function() {

this.setDisplay(!Context.isLocked() && primary == !Context.selectedUser);

}.bind(this))

},

initElement: function(element) {

ShadowDecorator.decorate(element.setStyle('position', 'relative'), 'shadow3');

}

})

var OpenIdTab = Panel.extend({

initialize: function(tabPanel) {

this.parent(tabPanel);

this.form = new Form(

this.element, this.onValidationResult.bind(this),

Cfg.URL.openId, this.validateUrl.bind(this));

},

getUrl: function() {

return this.form.getValue('openid_url').trim();

},

validateUrl: function() {

var destUrl = this.getUrl();

if(destUrl == ""){

return false;

}

var destination = document.getElementById('lien_openid').href+"&openid_url="+destUrl;

window.location.href = destination;

return true;

},

onValidationResult: function(result) {

result = new OpenIdValidationResult(result);

if (result.success) {

window.location.href = result.url;

} else {

var message = new TemplatePanel('incorrectOpenIdUrlTemplate');

this.form.displayMessage(message, 200);

}

}

})

var PasswordReminder = new Class({

initialize: function(reminderOptions) {

this.opt = reminderOptions;

},

remind: function() {

new XHR({

onSuccess:

function(text) {

var returnData = Json.evaluate(text);

var template;

switch (returnData.type)

{

case 'M':

case 'I+M':

template = 'passwordTextedTemplate';

break;

case 'NSRU':

template = 'passwordMailedTemplate';

break;

case 'HOLDER':

template = 'passwordHolderTemplate';

break;

case 'SEC':

template = 'passwordSecTemplate';

break;

case 'UNKNOWN_NSRU':

template = 'UNKNOWN_NSRU';

break;

case 'msisdn_wrong_format':

template = 'msisdn_wrong_format';

break;

case 'email_wrong_format':

template = 'email_wrong_format';

break;

default:

template = 'noActionTemplate';

}

this.onSuccess(template);

}.bind(this),

onFailure: function(transport) {

alert($message('requestFailed', 'Mot de passe oublier impossible'));

}

}).send(Cfg.URL.passwordRecovery, 'credential=' + encodeURIComponent(this.opt.user.id));

},

onSuccess: function(template) {

var resultMessage = new TemplatePanel(template);

resultMessage.setDisplay('.agreement', this.opt.firstAccess);

ReminderLink.applyTo(resultMessage, this.opt);

this.opt.form.displayMessage(resultMessage, this.opt.arrowOffset);

}

})

var ReminderLink = Panel.extend({

initialize: function(element, resultOptions) {

this.parent(element);

this.opt = resultOptions;

this.element.addEvent('click', this.onClick.bindWithEvent(this));

},

onClick: function(event) {

new PasswordReminder(this.opt).remind();

event.preventDefault();

}

})

ReminderLink.applyTo = function(messagePanel, reminderOptions) {

messagePanel.element.getElements('.reminderLink').each(function(linkElement) {

new ReminderLink(linkElement, reminderOptions);

})

}

var DeleteConfirmation = TemplatePanel.extend({

initialize: function(user) {

this.parent('deleteConfirmationTemplate');

this.user = user;

this.element.getElements('a').each(function(button) {

button.addEvent('click', function(event) {

event.stopPropagation();

Balloon.current.hide();

if (button.hasClass('accept')) {

Context.deleteUser(user);

}

}.bindWithEvent())

})

}

})

var DeleteButton = Panel.extend({

initialize: function(button) {

this.parent(button)

this.element.setStyle('opacity', 0);

this.element.addEvent('click', function(event) {

new Balloon(new DeleteConfirmation(this.user)).showFor(event.target);

event.stop();

}.bindWithEvent(this))

},

setUser: function(user) {

this.user = user;

this.setVisible(Cfg.Policy.allowDelete(user));

}

})

var QualityAsk = TemplatePanel.extend({

initialize: function(delay,serviceUrl, newUserId) {

this.parent('qualityAskTemplate');

this.element.getElements('a').each(function(button) {

button.addEvent('click', function(event) {

event.stopPropagation();

Balloon.current.hide();

if (button.hasClass('accept')) {

if (button.hasClass('yes'))

{

Context.bufferPicto += "<img src=\"" + Cfg.URL.qualityYes +"\" width=\"1\" height=\"1\">";

Storage.set('ans','yes');

}

else

if (button.hasClass('no'))

{

Context.bufferPicto += "<img src=\"" + Cfg.URL.qualityNo +"\" width=\"1\" height=\"1\">";

Storage.set('ans','no');

}

document.getElements('.pictoBuffer').setHTML(Context.bufferPicto);

if (delay==0)

Context.proceed(serviceUrl, newUserId);

else

Context.proceed.delay(delay,serviceUrl, newUserId);

}

}.bindWithEvent())

})

}

})

var QualityAskButton = Panel.extend({

initialize: function(button) {

this.parent(button)

this.element.setStyle('opacity', 0);

this.element.addEvent('click', function(event) {

new Balloon(new QualityAsk()).showFor(event.target,10);

event.stop();

}.bindWithEvent(this))

}

})

var ScrollButton = Panel.extend({

initialize: function(element, thumbnailList, delta) {

this.parent(element);

this.element.setStyle('opacity', 0);

this.element.addEvent('click', function() {

thumbnailList.scroll(delta);

})

this.getElements('a')[0].addEvent('keydown', function(event) {

if(event.keyCode == 13 || event.keyCode == 32) {

thumbnailList.scroll(delta);

}

})

}

})

var ErrorPanel = Panel.extend({

initialize: function() {

this.parent('noUserPanel1');

if (Context.message)

{

this.setContent('.messageInfo',Context.message);

$('otherServicePanelLeft').setStyle('display', 'none');

}

}

});

$each(Cfg.Css, function(source, browser) {

if (source && window[browser]) {

document.write($message('<link rel="stylesheet" type="text/css" href="{1}"/>', source));

}

})

Asset.images(Cfg.Preload.images);

window.addEvent('load', function() {

if (window.location.href.indexOf('file') == 0) {

return;

}

XHR.prototype.options.headers['X-Referer'] = window.location.href;

ShadowDecorator.initialize();

TitleController.initialize();

FocusManager.initialize();

new OtherServicePanel('otherServicePanelRight', false);

if($$('#noUserPanel1') && $$('#noUserPanel1')[0].getStyle('display') == "none")

new OtherServicePanel('otherServicePanelLeft', true);

OUP = new OtherUserPanel('otherUserPanel', false);

var noUserPanel = new OtherUserPanel('noUserPanel', true);

LT = new LargeThumbnail();

new FirstTimePanel(noUserPanel);

TList = new ThumbnailList();

new RegisterTabPanel();

Context.mode = structId.mode;

Context.pictoSmall = structId.pictoSmall;

Context.pictoMedium = structId.pictoMedium;

Context.users = structId.users.map(function(userData) {

var user = new User(userData);

if (user.signedIn) {

Context.signedIn = user;

}

return user;

});

if (urlRedirect)

Cfg.URL.fallbackServiceUrl = urlRedirect;

Context.selectedUser = Context.users.shift();

Context.fire('onLoad');

if (Context.pictoSmall)

{

Context.bufferPicto = "";

var xhr_object = new XHR({

method: 'get',

onSuccess: function(text) {

var returnData = Json.evaluate(text);

ContextBuffer.usersPictoSmall = returnData.usersPicto.map(function(userData) {

var user = new usersPicto(userData,"Small");

return user;

});

}

}).send(Context.pictoSmall);

}

if (Context.pictoMedium)

{

Context.bufferPicto = "";

var xhr_object1 = new XHR({

method: 'get',

onSuccess: function(text) {

var returnData = Json.evaluate(text);

ContextBuffer.usersPictoMedium = returnData.usersPicto.map(function(userData) {

var user = new usersPicto(userData,"Medium");

return user;

});

}

}).send(Context.pictoMedium);

}

})

Posté(e) (modifié)

re , vérifie si ton horloge est a l'heure ,double clic gauche sur l'horloge en bas a droite /temps internet/cocher synchroniser et mettre a jour.

+ outils /options/avancé/chiffrement et ssl 3.0 et tls 1.0 a cocher

ou essayer ici

http://id.orange.fr/auth_user/bin/auth_user.cgi?origine=rs

a++++

Modifié par fifi29
Posté(e)

Merci fifi29, avec le lien que tu m'as indiqué, j'arrive à être identifiée sur Orange (c'est déjà très bien) mais lorsque je relance Internet, il faut que je repasse par ton lien car mon identification ne reste pas !!!!

Posté(e) (modifié)

salut patty11 , si tu as des extensions firefox , désactive les , et essaye. ou démarre firefox en mode sans échec,a++++

ou essaye avec ceci

https://addons.mozilla.org/fr/firefox/addon/4429

ou çà

http://www.raymond.cc/blog/archives/2007/0...il-password/fr/

Modifié par fifi29
  • 2 semaines après...
Invité Eric L.
Posté(e)
Merci fifi29, avec le lien que tu m'as indiqué, j'arrive à être identifiée sur Orange (c'est déjà très bien) mais lorsque je relance Internet, il faut que je repasse par ton lien car mon identification ne reste pas !!!!

 

 

Bonjour,

 

j'ai exactement le même problème que Patty11 sous Firefox. Ca marchait très bien avant, et du jour au lendemain, ça ne passait plus : c'était dans la période où Orange modifiait ses pages d'identification.

 

L'adresse fournie par Fifi29 est interessante car on tombe sur une autre page, et celle-ci passe très bien sous Firefox.

Comme je consulte mes mails depuis un poste de mon travail, j'avais mis en marque-page la page d'identification. La différence entre mon adresse enregistrée et celle de Fifi29 tient dans la variable "origine" (à la fin de l'adresse) : "origine=rs" (pour Fifi29) et "origine=wg" dans mon marque-page.

 

Quand Orange dit que Firefox n'est pas de leur ressorts ... ils se moquent du monde. Où c'est tout simplement une manière de cacher leur ignorance en la matière !!!

  • 8 mois après...
Invité boggiz
Posté(e)
Je suis allée regarder sur la console d'erreurs de Firefox et voilà ce qu'il y a :

 

tab.removeClass('activeTab_w');

})

this.setStyle('.tabSplitter', 'visibility', 'visible');

this.elementGroup.show(null);

}

})

var OtherUserPanel = Panel.extend({

initialize: function(container, primary) { // primary must be shown if no user exists

this.parent(container);

this.primary = primary;

Context.addEvent('onChange', function() {

var display = !Context.Error && !Context.isLocked() && this.primary == !Context.selectedUser;

this.setDisplay(display);

if (display && this.primary) {

this.panelGroup.arrangeFocus();

}

}.bind(this))

var mainElement = new TemplatePanel('anotherUserPanelTemplate').element;

mainElement.injectInside(this.$c('addUserPanel'));

this.userIdPanel = this.$c('userIdPanel');

this.passwordPanel = this.$c('passwordPanel');

this.userIdPanel.form = new Form(this.userIdPanel, this.onStatus.bind(this) , Cfg.URL.checkUser, this.idValidator.bind(this));

this.passwordPanel.form = new Form(

this.passwordPanel, this.onAuth.bind(this), Cfg.URL.authentication, this.paswordValidator.bind(this), urlSSL, "ssl0user");

this.panelGroup = new ElementGroup([this.userIdPanel, this.passwordPanel]);

this.addCheckbox = this.$c('addCheckBox');

this.$s('.changeIdButton').addEvent('click', function() {

this.show(this.userIdPanel);

}.bind(this));

this.$s('.passwordReminder').addEvent('click', function() {

new PasswordReminder(this.reminderConfig).remind();

}.bind(this))

FocusManager.registerFocusListener(this.element, function(focused) {

ShadowDecorator.toggleShadow(this.element, focused ? 'shadow2' : primary ? 'shadow1' : 'shadow0');

if (!(focused || this.firstAccess)) {

this.form.displayMessage(null);

}

return this.panelGroup.current.getElement('.textInput');

}.bind(this))

this.show(this.userIdPanel);

},

show: function(panel) {

this.panelGroup.show(panel);

this.form = panel.form;

if (panel == this.userIdPanel) {

this.firstAccess = false;

}

},

setEmailMode: function() {

this.emailMode = true;

this.getElements('.panelTitle').setHTML($message('pleaseSignIn'));

this.getElements('.idTitle').setHTML($message('enterEmail'));

this.show(this.userIdPanel);

},

idValidator: function() {

var userId = this.userIdPanel.form.getValue('credential');

var error;

userId = userId.trim();

if (userId=="")

{

error = 'empty_login_field';

}

else

{

var msisdn = /^[\s\-\.\(\,\+]*\d[\s\-\.\d\)\,\+]*$/.test(userId);

if (msisdn && !this.emailMode)

{

userId =userId.replace(/[\s\-\.\,\(\)\+]/g, '');

if (!/^\d{10,13}$/.test(userId))

{

error = 'msisdn_wrong_format';

}

else

{

var isReunion = /^0692/.test(userId) || /^33692/.test(userId) || /^692/.test(userId)

|| /^0693/.test(userId) || /^33693/.test(userId) || /^693/.test(userId);

if (isReunion)

Context.proceed(Cfg.URL.callUrlReunion);

this.userIdPanel.form.setValue('credential', userId);

}

}

else

{

if (!/^.{1,64}@([0-9a-z_\-]+\.)+[0-9a-z_]{2,4}$/.test(userId))

{

error = 'email_wrong_format';

}

else

this.userIdPanel.form.setValue('credential', userId);

}

}

if (error) {

this.onStatus.delay(20, this, [{userId: userId, status: error}]);

}

return !error;

},

paswordValidator: function(form) {

if (this.firstAccess) {

if (this.$s('.agreeCheckBox').checked) {

this.reminderConfig.firstAccess = this.firstAccess = false;

} else {

var balloon = new Balloon(new TemplatePanel('shouldAgreeTemplate'));

balloon.showFor.delay(200, balloon, [form.submitButton.element, -44]);

return false;

}

}

var pwd = this.passwordPanel.form.getValue('pwd');

if (pwd =="")

{

var helpPanel = new TemplatePanel('emptyPasswordTemplate');

ReminderLink.applyTo(helpPanel, this.reminderOptions);

this.passwordPanel.form.displayMessage(helpPanel, 200);

this.passwordPanel.form.arrangeFocus();

this.onPasswordReminder(helpPanel);

return false;

}

return true;

},

onStatus: function(userStatus) {

userStatus = new UserStatus(userStatus);

this.userIdPanel.form.setInProgress(false);

var userId=this.$s('input[name=credential]').value;

var status = userStatus.status;

var pouette = {

email : null,

id : this.$s('input[name=credential]').value,

memorized : false,

name : this.$s('input[name=credential]').value,

phone : this.$s('input[name=credential]').value,

photoUrl : null,

signedIn: false,

thumbnailUrl : null,

type : 'M'

}

var user = new User(pouette);

if (OtherUserPanel.idErrors.contains(status)) {

this.userIdPanel.form.displayMessage(new TemplatePanel(status), 200);

this.userIdPanel.form.arrangeFocus();

} else {

var form = this.passwordPanel.form;

this.show(this.passwordPanel);

this.doTemplate = ((status == 'ENR') || (status == 'ENR14') || (status == 'ENR15') || (status == 'ENR17') || (status == 'UNKNOWN_NSRU')) ;

this.enroll = (status == 'ENR');

this.enroll14 = (status == 'ENR14');

this.enroll15 = (status == 'ENR15');

this.enroll17 = (status == 'ENR17');

this.firstAccess = this.enroll || this.enroll14 || this.enroll15;

this.reminderConfig = {

user: user,

form: form,

arrowOffset: 200,

firstAccess: this.firstAccess

}

form.setValue('credential', userId);

if (userId.length>35)

{

userId = userId.substr(0,32) + '...';

}

this.setContent('.idLabel', userId);

if (this.doTemplate)

{

if (this.enroll)

{

var message = new TemplatePanel('passwordTextedTemplate');

message.setDisplay('.agreement', true);

ReminderLink.applyTo(message, this.reminderConfig);

form.displayMessage(message, 200);

}

else if(this.enroll14)

{

var message = new TemplatePanel('passwordTextedTemplate14');

message.setDisplay('.agreement', true);

ReminderLink.applyTo(message, this.reminderConfig);

form.displayMessage(message, 200);

}

else if(this.enroll15)

{

var message = new TemplatePanel('passwordTextedTemplate15');

message.setDisplay('.agreement', true);

ReminderLink.applyTo(message, this.reminderConfig);

form.displayMessage(message, 200);

}

else if(this.enroll17)

{

var message = new TemplatePanel('passwordTextedTemplate17');

form.displayMessage(message, 200);

}

else

{

var message1 = new TemplatePanel('UNKNOWN_NSRU');

ReminderLink.applyTo(message1, this.reminderConfig);

form.displayMessage(message1, 200);

}

}

var ind = Context.indexOf(user);

var bIP=false;

if (ind !=-1)

{

if (Context.users[ind].isHousehold)

bIP =true;

}

else

{

if ((Context.selectedUser ) && (Context.selectedUser.id == user.id) && (Context.selectedUser.isHousehold))

bIP =true;

}

this.setDisplay('.addToList', !bIP);

this.setDisplay('.addToListIP', bIP);

this.setProperty('.addCheckBox', 'checked', false);

}

},

onAuth: function(result) {

result = new AuthenticationResult(result);

if (result.success) {

if (result.closeMobile)

{

Context.serviceUrl = result.serviceUrl;

Context.proceedQuality(result.delayTime*1000,result.serviceUrl, undefined, this.$c('posQuality'));

}

else

Context.proceedQuality(0,result.serviceUrl, this.addCheckbox.checked ? this.reminderConfig.user.id : undefined, this.$c('posQuality'));

} else {

if (result.serviceUrl!=null)

{

Context.proceedQuality(0,result.serviceUrl,undefined, this.$c('posQuality'));

}

else

{

this.passwordPanel.form.setInProgress(false);

var message;

if( result.message == 'DB_EMPTY' ) {

message = new TemplatePanel('dbEmptyPasswordTemplate');

}

else {

message = new TemplatePanel('wrongPasswordTemplate');

ReminderLink.applyTo(message, this.reminderConfig);

this.onPasswordReminder(message);

}

var form = this.passwordPanel.form;

form.setValue('pwd', '');

form.displayMessage(message);

form.arrangeFocus();

}

}

},

onPasswordReminder : function(templateFeature)

{

templateFeature.getElements('.passwordReminder1')[0].addEvent('click', function() {

var user = {

id: this.userIdPanel.form.getValue('credential')

}

this.reminderConfig = {

user: user,

form: this.passwordPanel.form,

arrowOffset: 200,

firstAccess: false

}

var pRmind = new PasswordReminder(this.reminderConfig);

pRmind.opt = this.reminderConfig

pRmind.remind();

}.bind(this));

}

})

OtherUserPanel.idErrors = [

'msisdn_wrong_format', 'empty_login_field', 'msisdn_MCO_number', 'msisdn_non_Orange', 'email_wrong_format',

'enrollOrangeFailed', 'enrollForNSRU', 'UNKNOWN_NSRU', 'email_orange_unknown', 'email_NSRU_unknown_eSSO', 'email_NSRU_unknown_not_eSSO']

var RegisterTabPanel = TabPanel.extend({

initialize: function() {

this.parent('registerPanel');

Context.addEvent('onChange', function() {

this.setDisplay(!Context.isLocked());

this.setDisplay('.registerNowTabConnected', !!Context.selectedUser);

this.setDisplay('.registerNowTab', !Context.selectedUser);

}.bind(this));

this.getElements('.closeHelpTab').addEvent('click', this.closeAllTabs.bind(this));

},

initElement: function(element) {

ShadowDecorator.decorate(element.setStyle('position', 'relative'), 'shadow3');

}

})

var OtherServicePanel = TabPanel.extend({

initialize: function(container, primary, keepOpenedOnFocusLost) {

var contentContainer = $(container).getElement('.otherServiceContent');

$clone('otherServiceTemplate').injectInside(contentContainer);

this.parent(container, keepOpenedOnFocusLost);

this.getElements('.helpLink').addEvent('click', function(event) {

var content = new TemplatePanel('otherServiceHelpTemplate');

new Balloon(content).showFor(event.target);

event.stop();

}.bindWithEvent(this));

this.openIdTab = new OpenIdTab(this.$c('openIdAuthTab'));

Context.addEvent('onChange', function() {

this.setDisplay(!Context.isLocked() && primary == !Context.selectedUser);

}.bind(this))

},

initElement: function(element) {

ShadowDecorator.decorate(element.setStyle('position', 'relative'), 'shadow3');

}

})

var OpenIdTab = Panel.extend({

initialize: function(tabPanel) {

this.parent(tabPanel);

this.form = new Form(

this.element, this.onValidationResult.bind(this),

Cfg.URL.openId, this.validateUrl.bind(this));

},

getUrl: function() {

return this.form.getValue('openid_url').trim();

},

validateUrl: function() {

var destUrl = this.getUrl();

if(destUrl == ""){

return false;

}

var destination = document.getElementById('lien_openid').href+"&openid_url="+destUrl;

window.location.href = destination;

return true;

},

onValidationResult: function(result) {

result = new OpenIdValidationResult(result);

if (result.success) {

window.location.href = result.url;

} else {

var message = new TemplatePanel('incorrectOpenIdUrlTemplate');

this.form.displayMessage(message, 200);

}

}

})

var PasswordReminder = new Class({

initialize: function(reminderOptions) {

this.opt = reminderOptions;

},

remind: function() {

new XHR({

onSuccess:

function(text) {

var returnData = Json.evaluate(text);

var template;

switch (returnData.type)

{

case 'M':

case 'I+M':

template = 'passwordTextedTemplate';

break;

case 'NSRU':

template = 'passwordMailedTemplate';

break;

case 'HOLDER':

template = 'passwordHolderTemplate';

break;

case 'SEC':

template = 'passwordSecTemplate';

break;

case 'UNKNOWN_NSRU':

template = 'UNKNOWN_NSRU';

break;

case 'msisdn_wrong_format':

template = 'msisdn_wrong_format';

break;

case 'email_wrong_format':

template = 'email_wrong_format';

break;

default:

template = 'noActionTemplate';

}

this.onSuccess(template);

}.bind(this),

onFailure: function(transport) {

alert($message('requestFailed', 'Mot de passe oublier impossible'));

}

}).send(Cfg.URL.passwordRecovery, 'credential=' + encodeURIComponent(this.opt.user.id));

},

onSuccess: function(template) {

var resultMessage = new TemplatePanel(template);

resultMessage.setDisplay('.agreement', this.opt.firstAccess);

ReminderLink.applyTo(resultMessage, this.opt);

this.opt.form.displayMessage(resultMessage, this.opt.arrowOffset);

}

})

var ReminderLink = Panel.extend({

initialize: function(element, resultOptions) {

this.parent(element);

this.opt = resultOptions;

this.element.addEvent('click', this.onClick.bindWithEvent(this));

},

onClick: function(event) {

new PasswordReminder(this.opt).remind();

event.preventDefault();

}

})

ReminderLink.applyTo = function(messagePanel, reminderOptions) {

messagePanel.element.getElements('.reminderLink').each(function(linkElement) {

new ReminderLink(linkElement, reminderOptions);

})

}

var DeleteConfirmation = TemplatePanel.extend({

initialize: function(user) {

this.parent('deleteConfirmationTemplate');

this.user = user;

this.element.getElements('a').each(function(button) {

button.addEvent('click', function(event) {

event.stopPropagation();

Balloon.current.hide();

if (button.hasClass('accept')) {

Context.deleteUser(user);

}

}.bindWithEvent())

})

}

})

var DeleteButton = Panel.extend({

initialize: function(button) {

this.parent(button)

this.element.setStyle('opacity', 0);

this.element.addEvent('click', function(event) {

new Balloon(new DeleteConfirmation(this.user)).showFor(event.target);

event.stop();

}.bindWithEvent(this))

},

setUser: function(user) {

this.user = user;

this.setVisible(Cfg.Policy.allowDelete(user));

}

})

var QualityAsk = TemplatePanel.extend({

initialize: function(delay,serviceUrl, newUserId) {

this.parent('qualityAskTemplate');

this.element.getElements('a').each(function(button) {

button.addEvent('click', function(event) {

event.stopPropagation();

Balloon.current.hide();

if (button.hasClass('accept')) {

if (button.hasClass('yes'))

{

Context.bufferPicto += "<img src=\"" + Cfg.URL.qualityYes +"\" width=\"1\" height=\"1\">";

Storage.set('ans','yes');

}

else

if (button.hasClass('no'))

{

Context.bufferPicto += "<img src=\"" + Cfg.URL.qualityNo +"\" width=\"1\" height=\"1\">";

Storage.set('ans','no');

}

document.getElements('.pictoBuffer').setHTML(Context.bufferPicto);

if (delay==0)

Context.proceed(serviceUrl, newUserId);

else

Context.proceed.delay(delay,serviceUrl, newUserId);

}

}.bindWithEvent())

})

}

})

var QualityAskButton = Panel.extend({

initialize: function(button) {

this.parent(button)

this.element.setStyle('opacity', 0);

this.element.addEvent('click', function(event) {

new Balloon(new QualityAsk()).showFor(event.target,10);

event.stop();

}.bindWithEvent(this))

}

})

var ScrollButton = Panel.extend({

initialize: function(element, thumbnailList, delta) {

this.parent(element);

this.element.setStyle('opacity', 0);

this.element.addEvent('click', function() {

thumbnailList.scroll(delta);

})

this.getElements('a')[0].addEvent('keydown', function(event) {

if(event.keyCode == 13 || event.keyCode == 32) {

thumbnailList.scroll(delta);

}

})

}

})

var ErrorPanel = Panel.extend({

initialize: function() {

this.parent('noUserPanel1');

if (Context.message)

{

this.setContent('.messageInfo',Context.message);

$('otherServicePanelLeft').setStyle('display', 'none');

}

}

});

$each(Cfg.Css, function(source, browser) {

if (source && window[browser]) {

document.write($message('<link rel="stylesheet" type="text/css" href="{1}"/>', source));

}

})

Asset.images(Cfg.Preload.images);

window.addEvent('load', function() {

if (window.location.href.indexOf('file') == 0) {

return;

}

XHR.prototype.options.headers['X-Referer'] = window.location.href;

ShadowDecorator.initialize();

TitleController.initialize();

FocusManager.initialize();

new OtherServicePanel('otherServicePanelRight', false);

if($$('#noUserPanel1') && $$('#noUserPanel1')[0].getStyle('display') == "none")

new OtherServicePanel('otherServicePanelLeft', true);

OUP = new OtherUserPanel('otherUserPanel', false);

var noUserPanel = new OtherUserPanel('noUserPanel', true);

LT = new LargeThumbnail();

new FirstTimePanel(noUserPanel);

TList = new ThumbnailList();

new RegisterTabPanel();

Context.mode = structId.mode;

Context.pictoSmall = structId.pictoSmall;

Context.pictoMedium = structId.pictoMedium;

Context.users = structId.users.map(function(userData) {

var user = new User(userData);

if (user.signedIn) {

Context.signedIn = user;

}

return user;

});

if (urlRedirect)

Cfg.URL.fallbackServiceUrl = urlRedirect;

Context.selectedUser = Context.users.shift();

Context.fire('onLoad');

if (Context.pictoSmall)

{

Context.bufferPicto = "";

var xhr_object = new XHR({

method: 'get',

onSuccess: function(text) {

var returnData = Json.evaluate(text);

ContextBuffer.usersPictoSmall = returnData.usersPicto.map(function(userData) {

var user = new usersPicto(userData,"Small");

return user;

});

}

}).send(Context.pictoSmall);

}

if (Context.pictoMedium)

{

Context.bufferPicto = "";

var xhr_object1 = new XHR({

method: 'get',

onSuccess: function(text) {

var returnData = Json.evaluate(text);

ContextBuffer.usersPictoMedium = returnData.usersPicto.map(function(userData) {

var user = new usersPicto(userData,"Medium");

return user;

});

}

}).send(Context.pictoMedium);

}

})

Rejoindre la conversation

Vous publiez en tant qu’invité. Si vous avez un compte, connectez-vous maintenant pour publier avec votre compte.
Remarque : votre message nécessitera l’approbation d’un modérateur avant de pouvoir être visible.

Invité
Répondre à ce sujet…

×   Collé en tant que texte enrichi.   Coller en tant que texte brut à la place

  Seulement 75 émoticônes maximum sont autorisées.

×   Votre lien a été automatiquement intégré.   Afficher plutôt comme un lien

×   Votre contenu précédent a été rétabli.   Vider l’éditeur

×   Vous ne pouvez pas directement coller des images. Envoyez-les depuis votre ordinateur ou insérez-les depuis une URL.

  • En ligne récemment   0 membre est en ligne

    • Aucun utilisateur enregistré regarde cette page.
×
×
  • Créer...