{"action":"created","issue":{"url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/121","repository_url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel","labels_url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/121/comments","events_url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/121/events","html_url":"https://github.com/Adldap2/Adldap2-Laravel/issues/121","id":160168003,"number":121,"title":"Don´t work Accessors & Mutators","user":{"login":"Albvadi","id":6285255,"avatar_url":"https://avatars.githubusercontent.com/u/6285255?v=3","gravatar_id":"","url":"https://api.github.com/users/Albvadi","html_url":"https://github.com/Albvadi","followers_url":"https://api.github.com/users/Albvadi/followers","following_url":"https://api.github.com/users/Albvadi/following{/other_user}","gists_url":"https://api.github.com/users/Albvadi/gists{/gist_id}","starred_url":"https://api.github.com/users/Albvadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Albvadi/subscriptions","organizations_url":"https://api.github.com/users/Albvadi/orgs","repos_url":"https://api.github.com/users/Albvadi/repos","events_url":"https://api.github.com/users/Albvadi/events{/privacy}","received_events_url":"https://api.github.com/users/Albvadi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-06-14T12:24:18Z","updated_at":"2016-06-27T14:17:29Z","closed_at":null,"body":"Hi,\r\nI´m trying configure [Accessors & Mutators](https://laravel.com/docs/master/eloquent-mutators#accessors-and-mutators) for some of the users fields and thy don´t work.\r\n\r\nIn my LDAP, there are users with the name in uppercase and others in lowercase and I´m show in the app with ucwords. \r\nI create the accessor (and the mutator just in case) like this in `app\\User.php` model:\r\n```php\r\npublic function getNameAttribute($value){\r\n    return ucwords($value);\r\n}\r\n\r\npublic function setNameAttribute($value){\r\n    $this->attributes['name'] = ucwords($value);\r\n}\r\n```\r\nbut it´s simply ignored, always show the data from LDAP.\r\nIn a Laravel with the normal auth against Database, works great.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/comments/228758518","html_url":"https://github.com/Adldap2/Adldap2-Laravel/issues/121#issuecomment-228758518","issue_url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/121","id":228758518,"user":{"login":"stevebauman","id":6421846,"avatar_url":"https://avatars.githubusercontent.com/u/6421846?v=3","gravatar_id":"","url":"https://api.github.com/users/stevebauman","html_url":"https://github.com/stevebauman","followers_url":"https://api.github.com/users/stevebauman/followers","following_url":"https://api.github.com/users/stevebauman/following{/other_user}","gists_url":"https://api.github.com/users/stevebauman/gists{/gist_id}","starred_url":"https://api.github.com/users/stevebauman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevebauman/subscriptions","organizations_url":"https://api.github.com/users/stevebauman/orgs","repos_url":"https://api.github.com/users/stevebauman/repos","events_url":"https://api.github.com/users/stevebauman/events{/privacy}","received_events_url":"https://api.github.com/users/stevebauman/received_events","type":"User","site_admin":false},"created_at":"2016-06-27T14:17:29Z","updated_at":"2016-06-27T14:17:29Z","body":"Apologies for the long response @Albvadi.\r\n\r\n> So, I´m wrong and fallback only work when user doesn´t exist in LDAP or should work when LDAP server return time out??\r\n\r\nFallback **only** works when your LDAP server **can** be contacted. It will first hit your LDAP server and try to authenticate, and if this fails, it will pass the credentials into the parent `EloquentUserProvider`:\r\n\r\nhttps://github.com/Adldap2/Adldap2-Laravel/blob/master/src/AdldapAuthUserProvider.php#L64"}}
{"actor":{"display_login":"stevebauman"}}