* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-class ShipSimuUserLogin extends BaseFrameworkSystem implements LoginableUser {
+class ShipSimuUserLogin extends BaseFrameworkSystem implements LoginableUser, Registerable {
/**
* The hashed password
*/
* @todo user account.
*/
public function doLogin (Requestable $requestInstance, Responseable $responseInstance) {
- // By default no method is selected
- $method = null;
- $data = "";
-
- // Get member class
- $userClass = $this->getConfigInstance()->getConfigEntry('user_class');
-
// Get a user instance
- $userInstance = call_user_func_array(array($userClass, 'createMemberByRequest'), array($requestInstance));
+ $userInstance = LoginFactory::createLoginObjectByRequest($requestInstance);
// Remember this new instance in registry
Registry::getRegistry()->addInstance('user', $userInstance);