Skip to content

Conversation

@tomonorman
Copy link
Contributor

in conjunction with dreamfactorysoftware/df-core@develop...DP-499 of DF Core

}

if (($this->generateToken($credentials) === $credentials['sso_token']) && ($credentials['timestamp'] > (time() - 120))) {
$credentials['is_active'] = 1;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tomonorman @krishnapriawan
Can you please elaborate, what's the purpose of this is_active?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Part of the laravel Login authentication. Users can be active or inactive (Rather than just deleted). Its set here to check against the db (make sure same there).

But I think you have a point. given the integrate login is a separate process this may not be necessary in this function

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay thanks for clarifying. Up to you whether you want to remove it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants