var/cache/dev/twig/33/33609887a3eec5e17931a2d69cf9811c108f1ede893a2b4094b5979784db1377.php line 42

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Theme/Users/User/Security/login.html.twig */
  14. class __TwigTemplate_c91413f3857d1eb2a875d6240f7f3fd6f5c0b28f353971efd28660c2bea810be extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'meta' => [$this'block_meta'],
  24.             'title' => [$this'block_title'],
  25.             'stylesheets' => [$this'block_stylesheets'],
  26.             'userblog_body' => [$this'block_userblog_body'],
  27.             'javascripttemplate' => [$this'block_javascripttemplate'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "Theme/Users/User/layoutuserlogin.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Theme/Users/User/Security/login.html.twig"));
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Theme/Users/User/Security/login.html.twig"));
  42.         $this->parent $this->loadTemplate("Theme/Users/User/layoutuserlogin.html.twig""Theme/Users/User/Security/login.html.twig"1);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  46.         
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  48.     }
  49.     // line 2
  50.     public function block_meta($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta"));
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta"));
  57.         // line 3
  58.         echo "\t";
  59.         $this->displayParentBlock("meta"$context$blocks);
  60.         echo "
  61. \t<meta name=\"keywords\" content=\"";
  62.         // line 4
  63.         echo twig_escape_filter($this->env, (isset($context["site"]) || array_key_exists("site"$context) ? $context["site"] : (function () { throw new RuntimeError('Variable "site" does not exist.'4$this->source); })()), "html"nulltrue);
  64.         echo ", Business, Innovation,Administration\"/>
  65. \t<meta name=\"author\" content=\"Noel Kenfack\"/>
  66. \t<meta name=\"description\" content=\"";
  67.         // line 6
  68.         echo twig_escape_filter($this->env, (isset($context["site"]) || array_key_exists("site"$context) ? $context["site"] : (function () { throw new RuntimeError('Variable "site" does not exist.'6$this->source); })()), "html"nulltrue);
  69.         echo " | Inscription | Cameroun | ";
  70.         echo twig_escape_filter($this->env, (isset($context["metier"]) || array_key_exists("metier"$context) ? $context["metier"] : (function () { throw new RuntimeError('Variable "metier" does not exist.'6$this->source); })()), "html"nulltrue);
  71.         echo "\" />
  72. ";
  73.         
  74.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  75.         
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  77.     }
  78.     // line 9
  79.     public function block_title($context, array $blocks = [])
  80.     {
  81.         $macros $this->macros;
  82.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  83.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  84.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  85.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  86.         // line 10
  87.         echo "\t";
  88.         $this->displayParentBlock("title"$context$blocks);
  89.         echo " | Connexion
  90. ";
  91.         
  92.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  93.         
  94.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  95.     }
  96.     // line 13
  97.     public function block_stylesheets($context, array $blocks = [])
  98.     {
  99.         $macros $this->macros;
  100.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  101.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  102.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  103.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  104.         // line 14
  105.         echo "
  106. <meta name=\"google-signin-client_id\" content=\"808214570153-stbihc7lmtfm86ia20b31pbak1afvam2.apps.googleusercontent.com\">
  107. <script src=\"https://apis.google.com/js/platform.js?onload=renderButton\" async defer></script>
  108. <script>
  109. \t//Connexion Using Google.
  110. \tfunction onSuccess(googleUser){
  111. \t  var profile = googleUser.getBasicProfile();
  112. \t  var id = profile.getId();
  113. \t  var email = profile.getEmail();
  114. \t  var nom = profile.getFamilyName();
  115. \t  var prenom = profile.getGivenName();
  116. \t  openModalLoginRS(id,email,nom,prenom,'USG','success','login');
  117. \t}
  118. \tfunction onFailure(error){
  119. \t  openModalLoginRS('','','','','USG','echec','login');
  120. \t}
  121. \t
  122. \tfunction renderButton(){
  123. \t  gapi.signin2.render('my-signin2', {
  124. \t\t'scope': 'profile email',
  125. \t\t'width': 264,
  126. \t\t'height': 42,
  127. \t\t'longtitle': true,
  128. \t\t'theme': 'dark'
  129. \t  });
  130. \t}
  131. \t
  132. \tfunction loginGlOne(){
  133. \t\tgapi.signin2.render('my-signin2',{
  134. \t\t'scope': 'profile email',
  135. \t\t'width': 260,
  136. \t\t'height': 42,
  137. \t\t'longtitle': true,
  138. \t\t'theme': 'dark',
  139. \t\t'onsuccess': onSuccess,
  140. \t\t'onfailure': onFailure
  141. \t  });
  142. \t}
  143. \t
  144. \tfunction openModalLoginRS(id,email,nom,prenom,type,statut,position)
  145. \t  {
  146. \t\t//content-modal-annimation-blog
  147. \t\t\$('#modal-animation-afex-premium').modal('show');
  148. \t\t\$('.wait-account-verification-affiliate').show();
  149. \t\t\$('.content-modal-annimation-afex-premium').hide();
  150. \t\t
  151. \t\t\$.post('";
  152.         // line 61
  153.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_user_validation_social_login", ["agent" => ((array_key_exists("agent"$context)) ? (_twig_default_filter((isset($context["agent"]) || array_key_exists("agent"$context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.'61$this->source); })()), "ordi")) : ("ordi"))]), "html"nulltrue);
  154.         echo "',{'id': id,'email': email,'nom': nom,'prenom': prenom,'type': type,'statut': statut,'position': position}, function(data){
  155. \t\t\t\$('.wait-account-verification-affiliate').hide();
  156. \t\t\t\$('.content-modal-annimation-afex-premium').show();
  157. \t\t\t
  158. \t\t\tif(data == 1){
  159. \t\t\t\t\$('.content-modal-annimation-afex-premium').html('<div style=\"display: block; text-align: center;\">Connexion effectuée avec succès.</br>Redirection en cours ...</br><img src=\"";
  160.         // line 66
  161.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("template/images/wait-user.gif"), "html"nulltrue);
  162.         echo "\" alt=\"image\"><div>');
  163. \t\t\t\tdocument.location.href= '";
  164.         // line 67
  165.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_user_acces_plateforme");
  166.         echo "';
  167. \t\t\t}else{
  168. \t\t\t\t\$('.content-modal-annimation-afex-premium').html(data);
  169. \t\t\t}
  170. \t\t});
  171. \t  }
  172. \t  
  173. \t  //Connexion Using FaceBook.
  174. \t  function statusChangeCallback(response){
  175. \t\tconsole.log('statusChangeCallback');
  176. \t\tconsole.log(response);
  177. \t\tif (response.status === 'connected') {
  178. \t\t  testAPI();
  179. \t\t} else {
  180. \t\t  //document.getElementById('status').innerHTML = 'Please log ' +'into this app.';
  181. \t\t}
  182. \t  }
  183. \t  function checkLoginState() {
  184. \t\tFB.getLoginStatus(function(response) {
  185. \t\t  statusChangeCallback(response);
  186. \t\t});
  187. \t  }
  188. \t  window.fbAsyncInit = function() {
  189. \t\tFB.init({
  190. \t\t  appId      : '1913794535583232',
  191. \t\t  xfbml      : true,
  192. \t\t  version    : 'v3.1'
  193. \t\t});
  194. \t\t//FB.getLoginStatus(function(response) {
  195. \t\t // statusChangeCallback(response);
  196. \t\t//});
  197. \t  };
  198. \t  // Load the SDK asynchronously
  199. \t  (function(d, s, id) {
  200. \t\t  var js, fjs = d.getElementsByTagName(s)[0];
  201. \t\t  if (d.getElementById(id)) return;
  202. \t\t  js = d.createElement(s); js.id = id;
  203. \t\t  js.src = 'https://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v3.1&appId=1913794535583232&autoLogAppEvents=1';
  204. \t\t  fjs.parentNode.insertBefore(js, fjs);
  205. \t\t}(document, 'script', 'facebook-jssdk'));
  206. \t  // Here we run a very simple test of the Graph API after login is
  207. \t  // successful.  See statusChangeCallback() for when this call is made.
  208. \t  function testAPI() {
  209. \t\tconsole.log('Welcome!  Fetching your information.... ');
  210. \t\tFB.api('/me?fields=id,name,email', function(response) {
  211. \t\t // console.log('Successful login for: ' + response.name);
  212. \t\t  //document.getElementById('status').innerHTML =
  213. \t\t //   'Thanks for logging in, ' + response.name + ' - ' + JSON.stringify(response)+ '!';
  214. \t\t 
  215. \t\t if (!response || response.error){
  216. \t\t\topenModalLoginRS('','','','','USF','echec','login');
  217. \t\t  } else {
  218. \t\t\topenModalLoginRS(response.id,response.email,response.name,'','USF','success','login');
  219. \t\t  }
  220. \t\t\t  
  221. \t\t});
  222. \t  }
  223. </script>
  224. ";
  225.         // line 131
  226.         $this->displayParentBlock("stylesheets"$context$blocks);
  227.         echo "
  228. ";
  229.         
  230.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  231.         
  232.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  233.     }
  234.     // line 134
  235.     public function block_userblog_body($context, array $blocks = [])
  236.     {
  237.         $macros $this->macros;
  238.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  239.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""userblog_body"));
  240.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  241.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""userblog_body"));
  242.         echo "\t
  243. \t
  244. <section class=\"section\" style=\"min-height: calc(100vh - 250px);\">
  245. \t<h1 style=\"width: 100%; text-align: center;\">
  246. \tConnectez-vous à votre compte ";
  247.         // line 138
  248.         echo twig_escape_filter($this->env, (isset($context["site"]) || array_key_exists("site"$context) ? $context["site"] : (function () { throw new RuntimeError('Variable "site" does not exist.'138$this->source); })()), "html"nulltrue);
  249.         echo "
  250. \t</h1>
  251. \t<!-- <div style=\"text-align: center!important;\"> -->
  252. \t <!-- <fb:login-button scope=\"public_profile,email,user_friends\" onlogin=\"checkLoginState();\" class=\"fb-login-button\" data-max-rows=\"1\" data-size=\"large\" data-button-type=\"continue_with\" data-show-faces=\"false\" data-auto-logout-link=\"false\" data-use-continue-as=\"false\"> -->
  253. \t <!-- </fb:login-button> -->
  254. \t <!-- </div> -->
  255. \t 
  256. \t <!-- <div style=\"text-align: center!important;\"> -->
  257. \t\t<!-- <button id=\"my-signin2\" onclick=\"loginGlOne()\" style=\"border: none; margin: 15px 0px 0px 0px; padding: 0px;\"></button> -->
  258. \t <!-- </div> -->
  259. \t\t 
  260. \t<div class=\"form-progress\">
  261. \t\t<div style=\"color: red;\">";
  262.         // line 151
  263.         echo twig_escape_filter($this->env, (isset($context["error_login"]) || array_key_exists("error_login"$context) ? $context["error_login"] : (function () { throw new RuntimeError('Variable "error_login" does not exist.'151$this->source); })()), "html"nulltrue);
  264.         echo "</div>
  265. \t</div>
  266. \t
  267. \t<div class=\"animation-container\">
  268. \t\t<!-- Step one -->
  269. \t\t<div class=\"form-step js-form-step\" data-step=\"1\">
  270. \t\t\t<!-- <p class=\"form-instructions\"><strong>Pour vous connectez rapidement à votre compte AZ Corporation, cliquez sur l'un des boutons ci-dessus pour continuer</strong></p> -->
  271. \t\t\t<!-- <p class=\"form-instructions\"> -->
  272. \t\t\t    <!-- <div style=\"text-align: center; margin: 25px 0px;\"> -->
  273. \t\t\t\t<!-- <div class=\"or-spacer\"> -->
  274. \t\t\t\t  <!-- <div class=\"mask\"></div> -->
  275. \t\t\t\t  <!-- <span><i>ou</i></span> -->
  276. \t\t\t\t<!-- </div> -->
  277. \t\t\t\t<!-- </div></p> -->
  278. \t\t\t<form method=\"post\" action=\"";
  279.         // line 167
  280.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_user_connexion_user");
  281.         echo "\" name=\"form-step-1\">
  282. \t\t\t\t<div class=\"fieldgroup\">
  283. \t\t\t\t\t<input id=\"username\" name=\"username\" type=\"text\" required=\"\" autocomplete=\"email\"/>
  284. \t\t\t\t\t<label for=\"username\">Téléphone ou Email</label>
  285. \t\t\t\t</div>
  286. \t\t\t\t<div class=\"fieldgroup\">
  287. \t\t\t\t\t<input type=\"password\" id=\"password\" name=\"password\" type=\"password\" required=\"\"/>
  288. \t\t\t\t\t<label for=\"password\">Mot de passe</label>
  289. \t\t\t\t</div>
  290. \t\t\t\t<div class=\"fieldgroup\" style=\"margin-top: 15px;\">
  291. \t\t\t\t\t<label style=\"display: block; text-align: left; width: 100%;\">
  292. \t\t\t\t\t  <a href=\"#!\" class=\"modal_reset_password\" style=\"float: right; display: inline; color: #CCC;\">Mot de pas oublié ?</a>
  293. \t\t\t\t\t   <input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" checked style=\"float: left!important; height: 15px; width: 15px; margin-right: 7px;\"/> Se souvenir de moi
  294. \t\t\t\t\t</label>
  295. \t\t\t\t</div>
  296. \t\t\t\t<div class=\"clearfix\"></div>
  297. \t\t\t\t<div  style=\"text-align: center;\">
  298. \t\t\t\t\t<button type=\"submit\" class=\"btn\">Continuer</button>
  299. \t\t\t\t</div>
  300. \t\t\t</form>
  301. \t\t\t<div class=\"signup-content\" style=\"text-align: center;\">
  302. \t\t\t\t<h3>Vous êtes nouveau sur ";
  303.         // line 191
  304.         echo twig_escape_filter($this->env, (isset($context["site"]) || array_key_exists("site"$context) ? $context["site"] : (function () { throw new RuntimeError('Variable "site" does not exist.'191$this->source); })()), "html"nulltrue);
  305.         echo " ?</h3>
  306. \t\t\t\t<p>Un compte ";
  307.         // line 192
  308.         echo twig_escape_filter($this->env, (isset($context["site"]) || array_key_exists("site"$context) ? $context["site"] : (function () { throw new RuntimeError('Variable "site" does not exist.'192$this->source); })()), "html"nulltrue);
  309.         echo " vous permettra de passer et de suivre vos commandes via un tableau de bord.</p>
  310. \t\t\t\t<div>
  311. \t\t\t\t\t<a href=\"";
  312.         // line 194
  313.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_user_inscription_user");
  314.         echo "\">Créer un compte <span class=\"fa fa-angle-right\"></span></a>
  315. \t\t\t\t</div>
  316. \t\t\t</div>
  317. \t\t</div>
  318. \t</div>
  319. </section>
  320. <div class=\"modal fade\" data-backdrop=\"false\"  id=\"open-modalSelect-reinitialize\" style=\"padding-top: 50px;\">
  321. <div class=\"modal-dialog\">
  322.     <div class=\"modal-content\">
  323. \t\t<div class=\"modal-header color-bottom\" style=\"border-bottom: 4px solid #37c0fb; display: block!important;\">
  324. \t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\" style=\"float: right!important;\">&times;</button>
  325. \t\t\t<h3 class=\"modal-title\" style=\"margin: 0px; font-size: 22px;\"> Initialisation du mot de passe</h3>
  326. \t\t</div>
  327. \t\t<div class=\"modal-body\">
  328. \t\t\t<div class=\"wait-account-verification-affiliate\" style=\"text-align: center; height: 100px; padding-top: 30px; color: #333;\">
  329. \t\t\t\tPatientez un moment pendant la vérification de votre session.</br>
  330. \t\t\t\t<img src=\"";
  331.         // line 213
  332.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("template/images/loader1.gif"), "html"nulltrue);
  333.         echo "\" alt=\"image\" style=\"height: 40px; width: 40px;\">
  334. \t\t\t</div>
  335. \t\t\t<div class=\"form-coustom-reset-password\" style=\"text-align: left; display: none; margin-bottom: 30px;\">
  336. \t\t\t\t<div class=\"col-md-10 col-sm-12 offset-md-1\" style=\"color: #333;\">
  337. \t\t\t\t <div style=\"border-bottom: 1px solid #ddd; margin-bottom: 15px; font-size: 20px;\">Identification du compte</div>
  338. \t\t\t\t <form method=\"post\" action=\"#\" class=\"form-check-identifiant\">
  339. \t\t\t\t\t<div class=\"form-group form-group-resset\">
  340. \t\t\t\t\t\t<input type=\"text\" class=\"form-control\" placeholder=\"Rentrez l'email du compte\" required=\"\">
  341. \t\t\t\t\t</div>
  342. \t\t\t\t\t
  343. \t\t\t\t\t<div class=\"alert alert-resset alert-block alert-danger\" style=\"display:none\">
  344. \t\t\t\t\t<h4>Erreur !</h4>
  345. \t\t\t\t\tNous n'avons pu identifier un compte avec cette adresse.
  346. \t\t\t\t\t</div>
  347. \t\t\t\t\t
  348. \t\t\t\t\t<div class=\"form-group\">
  349. \t\t\t\t\t\t<button  class=\"btn btn-primary\" style=\"background: #e34520;\">Envoyer</button>
  350. \t\t\t\t\t</div>
  351. \t\t\t\t </form>
  352. \t\t\t\t</div>
  353. \t\t\t\t<div class=\"clearfix\"></div>
  354. \t\t\t</div>\t\t
  355. \t\t</div>
  356. \t\t<div class=\"modal-footer\" style=\"color: #333;\">
  357. \t\t\t";
  358.         // line 238
  359.         $this->loadTemplate("Theme/General/Template/Menu/social.html.twig""Theme/Users/User/Security/login.html.twig"238)->display($context);
  360.         // line 239
  361.         echo "        </div>
  362.     </div>
  363. </div>
  364. </div>
  365. \t
  366. ";
  367.         
  368.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  369.         
  370.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  371.     }
  372.     // line 246
  373.     public function block_javascripttemplate($context, array $blocks = [])
  374.     {
  375.         $macros $this->macros;
  376.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  377.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripttemplate"));
  378.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  379.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripttemplate"));
  380.         // line 247
  381.         echo "
  382. \$('.modal_reset_password').click(function(){
  383. \t\$('#open-modalSelect-reinitialize').modal('show');
  384. \tsetTimeout(function(){ 
  385. \t\t\t\$('.wait-account-verification-affiliate').hide();
  386. \t\t\t\$('.form-coustom-reset-password').show();
  387. \t}, 2000);
  388. });
  389. \$('form.form-check-identifiant').on('submit', function(){
  390. \tvar hauteur = \$(\".form-coustom-reset-password\").height() + 20;
  391. \tvar largeur = \$(\".form-coustom-reset-password\").width() + 5;
  392. \tvar padding = Math.round(hauteur/2 - 50);
  393. \tvar username = \$(this).find('input').val();
  394. \t\$(\".form-coustom-reset-password\").before('<div class=\"attente-resultat\" style=\"padding-top: '+padding+'px; z-index: 102; height: '+hauteur+'px; text-align: center; vertical-align: center; width: '+largeur+'px; position: absolute; background: #fff; margin-top: -7px;\"><span><img src=\"";
  395.         // line 261
  396.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("template/images/loader1.gif"), "html"nulltrue);
  397.         echo "\" alt=\"...\" style=\"width: 80px; height: 80px;\" /></span></div>');
  398. \t\$.post('";
  399.         // line 262
  400.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_user_reset_user_password", ["etape" => 1]);
  401.         echo "',{ username: username }, function(data){
  402. \t\t\$('.attente-resultat').hide();
  403. \t\tif(data != 0)
  404. \t\t{
  405. \t\t\t\$('.form-coustom-reset-password').replaceWith(data);
  406. \t\t}else{
  407. \t\t\t\$(\"div.form-group-resset\").addClass(\"has-error\");
  408. \t\t\t\$(\"div.alert-resset\").show(\"slow\").delay(4000).hide(\"slow\");
  409. \t\t}
  410. \t});
  411. \treturn false;
  412. });
  413. ";
  414.         
  415.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  416.         
  417.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  418.     }
  419.     public function getTemplateName()
  420.     {
  421.         return "Theme/Users/User/Security/login.html.twig";
  422.     }
  423.     public function isTraitable()
  424.     {
  425.         return false;
  426.     }
  427.     public function getDebugInfo()
  428.     {
  429.         return array (  452 => 262,  448 => 261,  432 => 247,  422 => 246,  407 => 239,  405 => 238,  377 => 213,  355 => 194,  350 => 192,  346 => 191,  319 => 167,  300 => 151,  284 => 138,  269 => 134,  257 => 131,  190 => 67,  186 => 66,  178 => 61,  129 => 14,  119 => 13,  106 => 10,  96 => 9,  82 => 6,  77 => 4,  72 => 3,  62 => 2,  39 => 1,);
  430.     }
  431.     public function getSourceContext()
  432.     {
  433.         return new Source("{% extends \"Theme/Users/User/layoutuserlogin.html.twig\" %}
  434. {% block meta %}
  435. \t{{ parent() }}
  436. \t<meta name=\"keywords\" content=\"{{ site }}, Business, Innovation,Administration\"/>
  437. \t<meta name=\"author\" content=\"Noel Kenfack\"/>
  438. \t<meta name=\"description\" content=\"{{ site }} | Inscription | Cameroun | {{ metier }}\" />
  439. {% endblock %}
  440. {% block title %}
  441. \t{{ parent() }} | Connexion
  442. {% endblock %}
  443. {% block stylesheets %}
  444. <meta name=\"google-signin-client_id\" content=\"808214570153-stbihc7lmtfm86ia20b31pbak1afvam2.apps.googleusercontent.com\">
  445. <script src=\"https://apis.google.com/js/platform.js?onload=renderButton\" async defer></script>
  446. <script>
  447. \t//Connexion Using Google.
  448. \tfunction onSuccess(googleUser){
  449. \t  var profile = googleUser.getBasicProfile();
  450. \t  var id = profile.getId();
  451. \t  var email = profile.getEmail();
  452. \t  var nom = profile.getFamilyName();
  453. \t  var prenom = profile.getGivenName();
  454. \t  openModalLoginRS(id,email,nom,prenom,'USG','success','login');
  455. \t}
  456. \tfunction onFailure(error){
  457. \t  openModalLoginRS('','','','','USG','echec','login');
  458. \t}
  459. \t
  460. \tfunction renderButton(){
  461. \t  gapi.signin2.render('my-signin2', {
  462. \t\t'scope': 'profile email',
  463. \t\t'width': 264,
  464. \t\t'height': 42,
  465. \t\t'longtitle': true,
  466. \t\t'theme': 'dark'
  467. \t  });
  468. \t}
  469. \t
  470. \tfunction loginGlOne(){
  471. \t\tgapi.signin2.render('my-signin2',{
  472. \t\t'scope': 'profile email',
  473. \t\t'width': 260,
  474. \t\t'height': 42,
  475. \t\t'longtitle': true,
  476. \t\t'theme': 'dark',
  477. \t\t'onsuccess': onSuccess,
  478. \t\t'onfailure': onFailure
  479. \t  });
  480. \t}
  481. \t
  482. \tfunction openModalLoginRS(id,email,nom,prenom,type,statut,position)
  483. \t  {
  484. \t\t//content-modal-annimation-blog
  485. \t\t\$('#modal-animation-afex-premium').modal('show');
  486. \t\t\$('.wait-account-verification-affiliate').show();
  487. \t\t\$('.content-modal-annimation-afex-premium').hide();
  488. \t\t
  489. \t\t\$.post('{{ path('users_user_validation_social_login', {'agent': agent|default('ordi') }) }}',{'id': id,'email': email,'nom': nom,'prenom': prenom,'type': type,'statut': statut,'position': position}, function(data){
  490. \t\t\t\$('.wait-account-verification-affiliate').hide();
  491. \t\t\t\$('.content-modal-annimation-afex-premium').show();
  492. \t\t\t
  493. \t\t\tif(data == 1){
  494. \t\t\t\t\$('.content-modal-annimation-afex-premium').html('<div style=\"display: block; text-align: center;\">Connexion effectuée avec succès.</br>Redirection en cours ...</br><img src=\"{{ asset('template/images/wait-user.gif') }}\" alt=\"image\"><div>');
  495. \t\t\t\tdocument.location.href= '{{ path('users_user_acces_plateforme') }}';
  496. \t\t\t}else{
  497. \t\t\t\t\$('.content-modal-annimation-afex-premium').html(data);
  498. \t\t\t}
  499. \t\t});
  500. \t  }
  501. \t  
  502. \t  //Connexion Using FaceBook.
  503. \t  function statusChangeCallback(response){
  504. \t\tconsole.log('statusChangeCallback');
  505. \t\tconsole.log(response);
  506. \t\tif (response.status === 'connected') {
  507. \t\t  testAPI();
  508. \t\t} else {
  509. \t\t  //document.getElementById('status').innerHTML = 'Please log ' +'into this app.';
  510. \t\t}
  511. \t  }
  512. \t  function checkLoginState() {
  513. \t\tFB.getLoginStatus(function(response) {
  514. \t\t  statusChangeCallback(response);
  515. \t\t});
  516. \t  }
  517. \t  window.fbAsyncInit = function() {
  518. \t\tFB.init({
  519. \t\t  appId      : '1913794535583232',
  520. \t\t  xfbml      : true,
  521. \t\t  version    : 'v3.1'
  522. \t\t});
  523. \t\t//FB.getLoginStatus(function(response) {
  524. \t\t // statusChangeCallback(response);
  525. \t\t//});
  526. \t  };
  527. \t  // Load the SDK asynchronously
  528. \t  (function(d, s, id) {
  529. \t\t  var js, fjs = d.getElementsByTagName(s)[0];
  530. \t\t  if (d.getElementById(id)) return;
  531. \t\t  js = d.createElement(s); js.id = id;
  532. \t\t  js.src = 'https://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v3.1&appId=1913794535583232&autoLogAppEvents=1';
  533. \t\t  fjs.parentNode.insertBefore(js, fjs);
  534. \t\t}(document, 'script', 'facebook-jssdk'));
  535. \t  // Here we run a very simple test of the Graph API after login is
  536. \t  // successful.  See statusChangeCallback() for when this call is made.
  537. \t  function testAPI() {
  538. \t\tconsole.log('Welcome!  Fetching your information.... ');
  539. \t\tFB.api('/me?fields=id,name,email', function(response) {
  540. \t\t // console.log('Successful login for: ' + response.name);
  541. \t\t  //document.getElementById('status').innerHTML =
  542. \t\t //   'Thanks for logging in, ' + response.name + ' - ' + JSON.stringify(response)+ '!';
  543. \t\t 
  544. \t\t if (!response || response.error){
  545. \t\t\topenModalLoginRS('','','','','USF','echec','login');
  546. \t\t  } else {
  547. \t\t\topenModalLoginRS(response.id,response.email,response.name,'','USF','success','login');
  548. \t\t  }
  549. \t\t\t  
  550. \t\t});
  551. \t  }
  552. </script>
  553. {{ parent() }}
  554. {% endblock %}
  555. {% block userblog_body %}\t
  556. \t
  557. <section class=\"section\" style=\"min-height: calc(100vh - 250px);\">
  558. \t<h1 style=\"width: 100%; text-align: center;\">
  559. \tConnectez-vous à votre compte {{ site }}
  560. \t</h1>
  561. \t<!-- <div style=\"text-align: center!important;\"> -->
  562. \t <!-- <fb:login-button scope=\"public_profile,email,user_friends\" onlogin=\"checkLoginState();\" class=\"fb-login-button\" data-max-rows=\"1\" data-size=\"large\" data-button-type=\"continue_with\" data-show-faces=\"false\" data-auto-logout-link=\"false\" data-use-continue-as=\"false\"> -->
  563. \t <!-- </fb:login-button> -->
  564. \t <!-- </div> -->
  565. \t 
  566. \t <!-- <div style=\"text-align: center!important;\"> -->
  567. \t\t<!-- <button id=\"my-signin2\" onclick=\"loginGlOne()\" style=\"border: none; margin: 15px 0px 0px 0px; padding: 0px;\"></button> -->
  568. \t <!-- </div> -->
  569. \t\t 
  570. \t<div class=\"form-progress\">
  571. \t\t<div style=\"color: red;\">{{ error_login }}</div>
  572. \t</div>
  573. \t
  574. \t<div class=\"animation-container\">
  575. \t\t<!-- Step one -->
  576. \t\t<div class=\"form-step js-form-step\" data-step=\"1\">
  577. \t\t\t<!-- <p class=\"form-instructions\"><strong>Pour vous connectez rapidement à votre compte AZ Corporation, cliquez sur l'un des boutons ci-dessus pour continuer</strong></p> -->
  578. \t\t\t<!-- <p class=\"form-instructions\"> -->
  579. \t\t\t    <!-- <div style=\"text-align: center; margin: 25px 0px;\"> -->
  580. \t\t\t\t<!-- <div class=\"or-spacer\"> -->
  581. \t\t\t\t  <!-- <div class=\"mask\"></div> -->
  582. \t\t\t\t  <!-- <span><i>ou</i></span> -->
  583. \t\t\t\t<!-- </div> -->
  584. \t\t\t\t<!-- </div></p> -->
  585. \t\t\t<form method=\"post\" action=\"{{ path('users_user_connexion_user') }}\" name=\"form-step-1\">
  586. \t\t\t\t<div class=\"fieldgroup\">
  587. \t\t\t\t\t<input id=\"username\" name=\"username\" type=\"text\" required=\"\" autocomplete=\"email\"/>
  588. \t\t\t\t\t<label for=\"username\">Téléphone ou Email</label>
  589. \t\t\t\t</div>
  590. \t\t\t\t<div class=\"fieldgroup\">
  591. \t\t\t\t\t<input type=\"password\" id=\"password\" name=\"password\" type=\"password\" required=\"\"/>
  592. \t\t\t\t\t<label for=\"password\">Mot de passe</label>
  593. \t\t\t\t</div>
  594. \t\t\t\t<div class=\"fieldgroup\" style=\"margin-top: 15px;\">
  595. \t\t\t\t\t<label style=\"display: block; text-align: left; width: 100%;\">
  596. \t\t\t\t\t  <a href=\"#!\" class=\"modal_reset_password\" style=\"float: right; display: inline; color: #CCC;\">Mot de pas oublié ?</a>
  597. \t\t\t\t\t   <input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" checked style=\"float: left!important; height: 15px; width: 15px; margin-right: 7px;\"/> Se souvenir de moi
  598. \t\t\t\t\t</label>
  599. \t\t\t\t</div>
  600. \t\t\t\t<div class=\"clearfix\"></div>
  601. \t\t\t\t<div  style=\"text-align: center;\">
  602. \t\t\t\t\t<button type=\"submit\" class=\"btn\">Continuer</button>
  603. \t\t\t\t</div>
  604. \t\t\t</form>
  605. \t\t\t<div class=\"signup-content\" style=\"text-align: center;\">
  606. \t\t\t\t<h3>Vous êtes nouveau sur {{ site }} ?</h3>
  607. \t\t\t\t<p>Un compte {{ site }} vous permettra de passer et de suivre vos commandes via un tableau de bord.</p>
  608. \t\t\t\t<div>
  609. \t\t\t\t\t<a href=\"{{ path('users_user_inscription_user') }}\">Créer un compte <span class=\"fa fa-angle-right\"></span></a>
  610. \t\t\t\t</div>
  611. \t\t\t</div>
  612. \t\t</div>
  613. \t</div>
  614. </section>
  615. <div class=\"modal fade\" data-backdrop=\"false\"  id=\"open-modalSelect-reinitialize\" style=\"padding-top: 50px;\">
  616. <div class=\"modal-dialog\">
  617.     <div class=\"modal-content\">
  618. \t\t<div class=\"modal-header color-bottom\" style=\"border-bottom: 4px solid #37c0fb; display: block!important;\">
  619. \t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\" style=\"float: right!important;\">&times;</button>
  620. \t\t\t<h3 class=\"modal-title\" style=\"margin: 0px; font-size: 22px;\"> Initialisation du mot de passe</h3>
  621. \t\t</div>
  622. \t\t<div class=\"modal-body\">
  623. \t\t\t<div class=\"wait-account-verification-affiliate\" style=\"text-align: center; height: 100px; padding-top: 30px; color: #333;\">
  624. \t\t\t\tPatientez un moment pendant la vérification de votre session.</br>
  625. \t\t\t\t<img src=\"{{ asset('template/images/loader1.gif') }}\" alt=\"image\" style=\"height: 40px; width: 40px;\">
  626. \t\t\t</div>
  627. \t\t\t<div class=\"form-coustom-reset-password\" style=\"text-align: left; display: none; margin-bottom: 30px;\">
  628. \t\t\t\t<div class=\"col-md-10 col-sm-12 offset-md-1\" style=\"color: #333;\">
  629. \t\t\t\t <div style=\"border-bottom: 1px solid #ddd; margin-bottom: 15px; font-size: 20px;\">Identification du compte</div>
  630. \t\t\t\t <form method=\"post\" action=\"#\" class=\"form-check-identifiant\">
  631. \t\t\t\t\t<div class=\"form-group form-group-resset\">
  632. \t\t\t\t\t\t<input type=\"text\" class=\"form-control\" placeholder=\"Rentrez l'email du compte\" required=\"\">
  633. \t\t\t\t\t</div>
  634. \t\t\t\t\t
  635. \t\t\t\t\t<div class=\"alert alert-resset alert-block alert-danger\" style=\"display:none\">
  636. \t\t\t\t\t<h4>Erreur !</h4>
  637. \t\t\t\t\tNous n'avons pu identifier un compte avec cette adresse.
  638. \t\t\t\t\t</div>
  639. \t\t\t\t\t
  640. \t\t\t\t\t<div class=\"form-group\">
  641. \t\t\t\t\t\t<button  class=\"btn btn-primary\" style=\"background: #e34520;\">Envoyer</button>
  642. \t\t\t\t\t</div>
  643. \t\t\t\t </form>
  644. \t\t\t\t</div>
  645. \t\t\t\t<div class=\"clearfix\"></div>
  646. \t\t\t</div>\t\t
  647. \t\t</div>
  648. \t\t<div class=\"modal-footer\" style=\"color: #333;\">
  649. \t\t\t{% include 'Theme/General/Template/Menu/social.html.twig' %}
  650.         </div>
  651.     </div>
  652. </div>
  653. </div>
  654. \t
  655. {% endblock %}
  656. {% block javascripttemplate %}
  657. \$('.modal_reset_password').click(function(){
  658. \t\$('#open-modalSelect-reinitialize').modal('show');
  659. \tsetTimeout(function(){ 
  660. \t\t\t\$('.wait-account-verification-affiliate').hide();
  661. \t\t\t\$('.form-coustom-reset-password').show();
  662. \t}, 2000);
  663. });
  664. \$('form.form-check-identifiant').on('submit', function(){
  665. \tvar hauteur = \$(\".form-coustom-reset-password\").height() + 20;
  666. \tvar largeur = \$(\".form-coustom-reset-password\").width() + 5;
  667. \tvar padding = Math.round(hauteur/2 - 50);
  668. \tvar username = \$(this).find('input').val();
  669. \t\$(\".form-coustom-reset-password\").before('<div class=\"attente-resultat\" style=\"padding-top: '+padding+'px; z-index: 102; height: '+hauteur+'px; text-align: center; vertical-align: center; width: '+largeur+'px; position: absolute; background: #fff; margin-top: -7px;\"><span><img src=\"{{ asset('template/images/loader1.gif') }}\" alt=\"...\" style=\"width: 80px; height: 80px;\" /></span></div>');
  670. \t\$.post('{{ path('users_user_reset_user_password', {'etape': 1}) }}',{ username: username }, function(data){
  671. \t\t\$('.attente-resultat').hide();
  672. \t\tif(data != 0)
  673. \t\t{
  674. \t\t\t\$('.form-coustom-reset-password').replaceWith(data);
  675. \t\t}else{
  676. \t\t\t\$(\"div.form-group-resset\").addClass(\"has-error\");
  677. \t\t\t\$(\"div.alert-resset\").show(\"slow\").delay(4000).hide(\"slow\");
  678. \t\t}
  679. \t});
  680. \treturn false;
  681. });
  682. {% endblock %}""Theme/Users/User/Security/login.html.twig""/home/azcorp-institut/public_html/iaz/templates/Theme/Users/User/Security/login.html.twig");
  683.     }
  684. }