[Tiki-users] Fw: dev.tiki.org login problem

aris002 via TikiWiki-users <[email protected]> Sat, 24 Jul 2021 21:28:25 +0000 (UTC)
Newsgroups gmane.comp.cms.tiki.user,gmane.comp.cms.tiki.devel
Message-ID <[email protected]>
 Hi devs,
This writing is also a bit on behalf of Marc...
...this error comes from 
lib/tikiaccesslib.php
Could someone who programmed it or have more experience with those kind of things have a look and make it just write to log, give feedback but not block users from logging in?And make the reason of this setting optional? Request could not be completed due to problems encountered in the security check:

 private function csrfError($error = 'session')
    {
        if ($error !== 'none') {
            $log = ! empty(ini_get('error_log'));
            if ($log) {
                $moreUserMsg = ' ' . tr('For more information, administrators can check the server php error log as defined in php.ini.');
            } else {
                $moreUserMsg = ' ' . tr('For more information in the future, administrators can define the error_log setting in the php.ini file.');
            }
            $this->userMsg = tr('Request could not be completed due to problems encountered in the security check.')
                . $this->userMsg . $moreUserMsg;
            //log message
            $this->csrfPhpErrorLog($this->logMsg);
            //user feedback
            switch ($error) {
                case 'services':
                    throw new Services_Exception($this->userMsg, 401);
                    break;
                case 'page':
                    Feedback::errorPage(['mes' => $this->userMsg, 'errortype' => 401]);
                    break;
                case 'session':
                default:
                    Feedback::error($this->userMsg);
                    break;
            }
        }
    }
Thanks, Aris

   ----- Forwarded message ----- From: Marc Laporte <[email protected]>To: Tiki users mailing list <[email protected]>Cc: aris002 <aris002-/[email protected]>Sent: Saturday, 24 July 2021, 23:27:19 EESTSubject: Re: [Tiki-users] dev.tiki.org login problem
 Can you try this URL? https://dev.tiki.org/login


On Sat, 24 Jul 2021 19:00:18 +0000 (UTC) Tiki users mailing list [email protected] said

> Working with Marc on this at the moment. 
> 
> Aris 
> 
> On Saturday, 24 July 2021, 21:56:44 EEST, Volker Wysk  wrote: 
> 
> Hi. 
> 
> I get this error message when I try to log in to dev.tiki.org: 
> 
> "Request could not be completed due to problems encountered in the 
> 
> security check. The security ticket included in the request does not 
> 
> match a ticket on the server. Reloading the page may help. For more 
> 
> information, administrators can check the server php error log as 
> 
> defined in php.ini." 
> 
> I can log in to tiki.org and doc.tiki.org (all with the same 
> 
> user/password). 
> 
> Bye 
> 
> Volker 
> 
> _______________________________________________ 
> 
> TikiWiki-users mailing list 
> 
> [email protected] 
> 
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-users

_______________________________________________
TikiWiki-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-users