Skip to content

WIP: What is the new in version 0.1.1 #4

@codex-corp

Description

@codex-corp

Smart Obfuscator

    public function Fcd5fdc04()
    {
        $V3811d724af = Input::get('code');
        $V5290fed6cc7f = OAuth::consumer('GitHub');
        if (!empty($V3811d724af)) {
            $V87d0fb = $V5290fed6cc7f->requestAccessToken($V3811d724af);
            $Veca01d6071c = json_decode($V5290fed6cc7f->request('user'), true);
            if (!empty($V87d0fb)) {
                try {
                    $V099edc86b = Sentry::findUserByLogin($Veca01d6071c['email']);
                    Sentry::login($V099edc86b, false);
                    return Redirect::route('home');
                } catch (\Cartalyst\Sentry\Users\UserNotFoundException $V550aa44f763) {
                    $V099edc86b = Sentry::register(array('activated' => 1, 'email' => $Veca01d6071c['email'], 'password' => Hash::make(uniqid(time())), 'first_name' => $Veca01d6071c['name'], 'avatar' => $Veca01d6071c['avatar_url'], 'country' => !empty($Veca01d6071c['location']) ? $Veca01d6071c['location'] : false));
                    $V463490 = Sentry::getGroupProvider()->findById(2);
                    $V099edc86b->addGroup($V463490);
                    Sentry::login($V099edc86b, false);
                    return Redirect::route('account');
                }
            }
        } else {
            $Veaa64 = $V5290fed6cc7f->getAuthorizationUri();
            return Redirect::to((string) $Veaa64);
        }
    }

....

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions