mirror of
https://github.com/friendica/friendica
synced 2025-04-26 05:50:11 +00:00
localise login template, allow openid to be disabled
This commit is contained in:
parent
34a8fb935d
commit
62bb471ba0
9 changed files with 81 additions and 19 deletions
|
@ -72,6 +72,8 @@ else {
|
|||
else {
|
||||
if((x($_POST,'openid_url')) && strlen($_POST['openid_url'])) {
|
||||
|
||||
$noid = get_config('system','no_openid');
|
||||
|
||||
$openid_url = trim($_POST['openid_url']);
|
||||
|
||||
// validate_url alters the calling parameter
|
||||
|
@ -80,7 +82,7 @@ else {
|
|||
|
||||
// if it's an email address or doesn't resolve to a URL, fail.
|
||||
|
||||
if((strpos($temp_string,'@')) || (! validate_url($temp_string))) {
|
||||
if(($noid) || (strpos($temp_string,'@')) || (! validate_url($temp_string))) {
|
||||
$a = get_app();
|
||||
notice( t('Login failed.') . EOL);
|
||||
goaway($a->get_baseurl());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue