Skip to content
Snippets Groups Projects
Commit 4c9801e7 authored by Olav Morken's avatar Olav Morken
Browse files

consent: Make getTargetedID() static.

This function is called statically several places, so let us make it
static to avoid the warnings.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2612 44740490-163a-0410-bde0-09ae8108e29a
parent 3caa1075
No related branches found
No related tags found
No related merge requests found
......@@ -223,7 +223,7 @@ class sspmod_consent_Auth_Process_Consent extends SimpleSAML_Auth_ProcessingFilt
/**
* Get a targeted ID. An identifier that is unique per SP entity ID.
*/
public function getTargetedID($userid, $source, $destination) {
public static function getTargetedID($userid, $source, $destination) {
return hash('sha1', $userid . '|' . SimpleSAML_Utilities::getSecretSalt() . '|' . $source . '|' . $destination);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment