{"action":"created","issue":{"url":"https://api.github.com/repos/KumbiaPHP/KumbiaPHP/issues/221","labels_url":"https://api.github.com/repos/KumbiaPHP/KumbiaPHP/issues/221/labels{/name}","comments_url":"https://api.github.com/repos/KumbiaPHP/KumbiaPHP/issues/221/comments","events_url":"https://api.github.com/repos/KumbiaPHP/KumbiaPHP/issues/221/events","html_url":"https://github.com/KumbiaPHP/KumbiaPHP/pull/221","id":92905356,"number":221,"title":"Omisión de $this->_algos y Llamada a modelo","user":{"login":"Moatilliatta","id":1994836,"avatar_url":"https://avatars.githubusercontent.com/u/1994836?v=3","gravatar_id":"","url":"https://api.github.com/users/Moatilliatta","html_url":"https://github.com/Moatilliatta","followers_url":"https://api.github.com/users/Moatilliatta/followers","following_url":"https://api.github.com/users/Moatilliatta/following{/other_user}","gists_url":"https://api.github.com/users/Moatilliatta/gists{/gist_id}","starred_url":"https://api.github.com/users/Moatilliatta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Moatilliatta/subscriptions","organizations_url":"https://api.github.com/users/Moatilliatta/orgs","repos_url":"https://api.github.com/users/Moatilliatta/repos","events_url":"https://api.github.com/users/Moatilliatta/events{/privacy}","received_events_url":"https://api.github.com/users/Moatilliatta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-07-03T16:28:00Z","updated_at":"2015-07-12T12:27:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/KumbiaPHP/KumbiaPHP/pulls/221","html_url":"https://github.com/KumbiaPHP/KumbiaPHP/pull/221","diff_url":"https://github.com/KumbiaPHP/KumbiaPHP/pull/221.diff","patch_url":"https://github.com/KumbiaPHP/KumbiaPHP/pull/221.patch"},"body":"Que tal, al tratar de implementar un proyecto con la librería Auth2, me topé con 2 probelmas, el primero es que en mi caso, para codificar una contraseña, uso algoritmos propios de la empresa para la que trabajo y no necesito especificar si es MD5, crc32 etc, por lo que considero mejor pasar la clave ya codificada, haciendo que modifiquemos la línea a:\r\n\r\n$password = ($this->_algos)? hash($this->_algos, $password) : $password;\r\n\r\nEl otro asunto con el que me topé es que al querer obtener una instancia del modelo que usamos para hacer el logueo, me da error de \"Fatal error: Cannot redeclare class\" por lo que opté por usar la función Load::model y dicho error desapareció."},"comment":{"url":"https://api.github.com/repos/KumbiaPHP/KumbiaPHP/issues/comments/120717839","html_url":"https://github.com/KumbiaPHP/KumbiaPHP/pull/221#issuecomment-120717839","issue_url":"https://api.github.com/repos/KumbiaPHP/KumbiaPHP/issues/221","id":120717839,"user":{"login":"joanhey","id":249085,"avatar_url":"https://avatars.githubusercontent.com/u/249085?v=3","gravatar_id":"","url":"https://api.github.com/users/joanhey","html_url":"https://github.com/joanhey","followers_url":"https://api.github.com/users/joanhey/followers","following_url":"https://api.github.com/users/joanhey/following{/other_user}","gists_url":"https://api.github.com/users/joanhey/gists{/gist_id}","starred_url":"https://api.github.com/users/joanhey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joanhey/subscriptions","organizations_url":"https://api.github.com/users/joanhey/orgs","repos_url":"https://api.github.com/users/joanhey/repos","events_url":"https://api.github.com/users/joanhey/events{/privacy}","received_events_url":"https://api.github.com/users/joanhey/received_events","type":"User","site_admin":false},"created_at":"2015-07-12T12:27:00Z","updated_at":"2015-07-12T12:27:00Z","body":"Sobre el Auth2, estamos creando otro nuevo. Más abstracto, que deje completa libertad a los adapters. El mismo adapter será quien decidirá si usar salt, algos, LDAP,...\r\nY que no se configure en la app, sino en app/libs. Asi cualquier app podrá usar auth, pero el auth que se configure en app/libs. Quedando la parte de Auth libre para plugins, mini apps, ... ya que para la app le dará igual que auth usas."}}