Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 5 | 4 | 0.955 | statement_block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 46 | plugins/authentication/example.php |
2 | 4 | 58 | plugins/authentication/example.php |
3 | 4 | 41 | plugins/authentication/joomla.php |
4 | 4 | 46 | plugins/authentication/ldap.php |
5 | 4 | 79 | plugins/authentication/openid.php |
| ||||
{ $response->status = JAUTHENTICATE_STATUS_SUCCESS; $response->error_message = ''; // You may also define other variables: /* $yourUser = YourClass::getUser($credentials); $response->email = $yourUser->email; $response->fullname = $yourUser->name; */ return TRUE; } |
| ||||
{ $response->status = JAUTHENTICATE_STATUS_FAILURE; $response->error_message = 'Could not authenticate'; return FALSE; } |
| ||||
{ $response->status = JAUTHENTICATE_STATUS_FAILURE; $response->error_message = 'Empty password not allowed'; return FALSE; } |
| ||||
{ $response->status = JAUTHENTICATE_STATUS_FAILURE; $response->error_message = 'LDAP can not have blank password'; return FALSE; } |
| ||||
{ $response->type = JAUTHENTICATE_STATUS_FAILURE; $response->error_message = 'Authentication error : could not connect to the openid server'; return FALSE; } |
| |||
{ $response-> [[#variable21f93500]]= [[#variable21f93460]]; $response->error_message = [[#variable21f933c0]]; // You may also define other variables: /* $yourUser = YourClass::getUser($credentials); $response->email = $yourUser->email; $response->fullname = $yourUser->name; */ return [[#variable21f93320]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#21f93500]] | status |
1 | 2 | [[#21f93500]] | status |
1 | 3 | [[#21f93500]] | status |
1 | 4 | [[#21f93500]] | type |
1 | 5 | [[#21f93500]] | status |
2 | 1 | [[#21f93460]] | JAUTHENTICATE_STATUS_FAILURE |
2 | 2 | [[#21f93460]] | JAUTHENTICATE_STATUS_FAILURE |
2 | 3 | [[#21f93460]] | JAUTHENTICATE_STATUS_FAILURE |
2 | 4 | [[#21f93460]] | JAUTHENTICATE_STATUS_FAILURE |
2 | 5 | [[#21f93460]] | JAUTHENTICATE_STATUS_SUCCESS |
3 | 1 | [[#21f933c0]] | 'Could not authenticate' |
3 | 2 | [[#21f933c0]] | 'Empty password not allowed' |
3 | 3 | [[#21f933c0]] | 'LDAP can not have blank password' |
3 | 4 | [[#21f933c0]] | 'Authentication error : could not connect to the openid server' |
3 | 5 | [[#21f933c0]] | '' |
4 | 1 | [[#21f93320]] | FALSE |
4 | 2 | [[#21f93320]] | FALSE |
4 | 3 | [[#21f93320]] | FALSE |
4 | 4 | [[#21f93320]] | FALSE |
4 | 5 | [[#21f93320]] | TRUE |