{"issue":{"state":"open","created_at":"2011-11-24T09:04:58Z","updated_at":"2011-11-24T09:05:00Z","user":{"gravatar_id":"256406243346b9253f8610fb1d1e05f6","id":1215373,"url":"https://api.github.com/users/importer","login":"importer","avatar_url":"https://secure.gravatar.com/avatar/256406243346b9253f8610fb1d1e05f6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":1,"body":"In ModuleRegistration on Line 154, TL tries to check if the username is the same as the password, and return an error if it is.\n\nI think this will never match, as the $objWidget is instance of \"FormPassword\", not \"Password\", right?\n\n--- _Originally created by andreas.schempp on August 24th, 2008, at 08:32pm (ID 7)_","assignee":{"gravatar_id":"360d94de41513598ac4440d46a3dab1b","id":1192057,"url":"https://api.github.com/users/leofeyer","login":"leofeyer","avatar_url":"https://secure.gravatar.com/avatar/360d94de41513598ac4440d46a3dab1b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"number":7,"id":2338801,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[{"color":"bd2c00","name":"Defect","url":"https://api.github.com/repos/contao/issues/labels/Defect"},{"color":"e6e6e6","name":"frontend","url":"https://api.github.com/repos/contao/issues/labels/frontend"},{"color":"ffdd00","name":"Invalid","url":"https://api.github.com/repos/contao/issues/labels/Invalid"}],"title":"Module Registration, Check Username == Password","closed_at":null,"html_url":"https://github.com/contao/issues/issues/7","milestone":null,"url":"https://api.github.com/repos/contao/issues/issues/7"},"action":"created","comment":{"created_at":"2011-11-24T09:04:59Z","updated_at":"2011-11-24T09:04:59Z","user":{"gravatar_id":"360d94de41513598ac4440d46a3dab1b","id":1192057,"url":"https://api.github.com/users/leofeyer","login":"leofeyer","avatar_url":"https://secure.gravatar.com/avatar/360d94de41513598ac4440d46a3dab1b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Which version are you referring to? My version says:\n\n```php\n<?php\n// Check whether the password matches the username\nif ($objWidget instanceof FormPassword && $varValue == $this->Input->post('username'))\n{\n\t$objWidget->addError($GLOBALS['TL_LANG']['ERR']['passwordName']);\n}\n?>\n```\n\nDid you check against the trunk?\n\nsource:trunk/system/modules/registration/ModuleRegistration.php\n\n--- _Originally created on August 25th, 2008, at 12:48am_","id":2859949,"url":"https://api.github.com/repos/contao/issues/issues/comments/2859949"}}