<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[PunBB Forums - Help with Login]]></title>
	<link rel="self" href="http://punbb.informer.com/forums/feed/atom/topic/21602/"/>
	<updated>2009-05-14T08:58:22Z</updated>
	<generator>PunBB</generator>
	<id>http://punbb.informer.com/forums/topic/21602/help-with-login/</id>
		<entry>
			<title type="html"><![CDATA[Re: Help with Login]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/127679/#p127679"/>
			<content type="html"><![CDATA[<p>I also have the same problem. Login does not work, the Pun shows the confirm-page. Logout does work!</p><div class="quotebox"><blockquote><p>/**<br />&nbsp; &nbsp; &nbsp;*&nbsp; @brief&nbsp; returns the login formular<br />&nbsp; &nbsp; &nbsp;*&nbsp; @return [string] form HTML<br />&nbsp; &nbsp; &nbsp;*/<br />&nbsp; &nbsp; public static function getFormLogin()<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; global $dict;<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; $register_url = forum_link(&#039;register.php&#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; $redirect_url = $_SERVER[&#039;REQUEST_URI&#039;];<br />&nbsp; &nbsp; &nbsp; &nbsp; $post_url&nbsp; &nbsp; &nbsp;= forum_link(&#039;login.php&#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; $csrf_token&nbsp; &nbsp;= generate_form_token($post_url);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; $form = &#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;form id=&quot;login&quot; name=&quot;login&quot; method=&quot;post&quot; action=&quot;&#039;.$post_url.&#039;&quot; accept-charset=&quot;utf-8&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;form_sent&quot; value=&quot;1&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;redirect_url&quot; value=&quot;&#039;.$redirect_url.&#039;&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;csrf_token&quot;&nbsp; &nbsp;value=&quot;&#039;.$csrf_token.&#039;&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;label for=&quot;req_username&quot;&gt;&#039;.$dict-&gt;getDict( &#039;username&#039;, &#039;login&#039;).&#039;: &lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;req_username&quot; size=&quot;16&quot; maxlength=&quot;25&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;label for=&quot;req_password&quot;&gt;&#039;.$dict-&gt;getDict( &#039;password&#039;, &#039;login&#039;).&#039;: &lt;/label&gt;&lt;input type=&quot;password&quot; name=&quot;req_password&quot; size=&quot;16&quot; maxlength=&quot;16&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;&#039;.$dict-&gt;getDict( &#039;login&#039;, &#039;login&#039;).&#039;&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;#&quot; onclick=&quot;document.login.submit(); return false;&quot;&gt;&#039;.$dict-&gt;getDict( &#039;login&#039;, &#039;login&#039;).&#039;&lt;/a&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &amp;nbsp; | &amp;nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;&#039;.$register_url.&#039;&quot;&gt;&#039;.$dict-&gt;getDict( &#039;register&#039;, &#039;login&#039;).&#039;&lt;/a&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;&#039;;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; return $form;<br />&nbsp; &nbsp; }</p></blockquote></div><div class="quotebox"><blockquote><p>/**<br />&nbsp; &nbsp; &nbsp;*&nbsp; @brief&nbsp; returns the logout formular<br />&nbsp; &nbsp; &nbsp;*&nbsp; @return [string] form HTML<br />&nbsp; &nbsp; &nbsp;*/<br />&nbsp; &nbsp; public static function getFormLogout()<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; global $dict, $currentuser;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; $redirect_url = $_SERVER[&#039;REQUEST_URI&#039;];<br />&nbsp; &nbsp; &nbsp; &nbsp; $post_url&nbsp; &nbsp; &nbsp;= forum_link(&#039;login.php&#039;).&#039;?action=out&amp;amp;id=&#039;.$currentuser-&gt;getID();<br />&nbsp; &nbsp; &nbsp; &nbsp; $csrf_token&nbsp; &nbsp;= generate_form_token($post_url);<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; $form = &#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;form id=&quot;login&quot; name=&quot;login&quot; method=&quot;post&quot; action=&quot;&#039;.$post_url.&#039;&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;form_sent&quot; value=&quot;1&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;redirect_url&quot; value=&quot;&#039;.$redirect_url.&#039;&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;csrf_token&quot;&nbsp; &nbsp;value=&quot;&#039;.$csrf_token.&#039;&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;&#039;.$dict-&gt;getDict( &#039;logout&#039;, &#039;login&#039;).&#039;&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;&#039;;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; return $form;<br />&nbsp; &nbsp; }</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[Nigg]]></name>
				<uri>http://punbb.informer.com/forums/user/9616/</uri>
			</author>
			<updated>2009-05-14T08:58:22Z</updated>
			<id>http://punbb.informer.com/forums/post/127679/#p127679</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help with Login]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/127486/#p127486"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>Slavok wrote:</cite><blockquote><p>Ok, I have modified your code:<br /></p><div class="codebox"><pre><code>&lt;form id=&quot;login&quot; name=&quot;login&quot; method=&quot;post&quot; action=&quot;login.php&quot; onsubmit=&quot;return process_form(this)&quot;&gt;
    &lt;input type=&quot;hidden&quot; name=&quot;form_sent&quot; value=&quot;1&quot; /&gt;
    &lt;input type=&quot;hidden&quot; name=&quot;csrf_token&quot; value=&quot;&lt;?php echo generate_form_token(forum_link($forum_url[&#039;login&#039;])) ?&gt;&quot; /&gt;
    &lt;input type=&quot;hidden&quot; name=&quot;redirect_url&quot; value=&quot;&lt;?php echo $redirect_url ?&gt;&quot; /&gt;
    Username
                    
    &lt;input type=&quot;text&quot; name=&quot;req_username&quot; size=&quot;16&quot; maxlength=&quot;25&quot; /&gt;
    &amp;nbsp; Password
 
     &lt;input type=&quot;password&quot; name=&quot;req_password&quot; size=&quot;16&quot; maxlength=&quot;16&quot; /&gt;
     &amp;nbsp;&lt;a href=&quot;#&quot; onclick=&quot;document.login.submit(); return false&quot;&gt; Login&lt;/form&gt;&#039;;</code></pre></div></blockquote></div><p>same problem again</p>]]></content>
			<author>
				<name><![CDATA[Developer]]></name>
				<uri>http://punbb.informer.com/forums/user/15415/</uri>
			</author>
			<updated>2009-05-07T19:18:20Z</updated>
			<id>http://punbb.informer.com/forums/post/127486/#p127486</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help with Login]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/127471/#p127471"/>
			<content type="html"><![CDATA[<p>Ok, I have modified your code:<br /></p><div class="codebox"><pre><code>&lt;form id=&quot;login&quot; name=&quot;login&quot; method=&quot;post&quot; action=&quot;login.php&quot; onsubmit=&quot;return process_form(this)&quot;&gt;
    &lt;input type=&quot;hidden&quot; name=&quot;form_sent&quot; value=&quot;1&quot; /&gt;
    &lt;input type=&quot;hidden&quot; name=&quot;csrf_token&quot; value=&quot;&lt;?php echo generate_form_token(forum_link($forum_url[&#039;login&#039;])) ?&gt;&quot; /&gt;
    &lt;input type=&quot;hidden&quot; name=&quot;redirect_url&quot; value=&quot;&lt;?php echo $redirect_url ?&gt;&quot; /&gt;
    Username
                    
    &lt;input type=&quot;text&quot; name=&quot;req_username&quot; size=&quot;16&quot; maxlength=&quot;25&quot; /&gt;
    &amp;nbsp; Password
 
     &lt;input type=&quot;password&quot; name=&quot;req_password&quot; size=&quot;16&quot; maxlength=&quot;16&quot; /&gt;
     &amp;nbsp;&lt;a href=&quot;#&quot; onclick=&quot;document.login.submit(); return false&quot;&gt; Login&lt;/form&gt;&#039;;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Slavok]]></name>
				<uri>http://punbb.informer.com/forums/user/13265/</uri>
			</author>
			<updated>2009-05-07T07:54:07Z</updated>
			<id>http://punbb.informer.com/forums/post/127471/#p127471</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help with Login]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/127468/#p127468"/>
			<content type="html"><![CDATA[<p>??<br />there is no function process_form ....<br />and the error is with Confirm action :<br />Unable to confirm security token. A likely cause for this is that some time passed between when you first entered the page and when you submitted a form or clicked a link. If that is the case and you would like to continue with your action, please click the Confirm button. Otherwise, you should click the Cancel button to return to where you were.<br />but if i disable it when i try to login it just redirect me to login page and fill up the form...<br />i tryed with this mod to <a href="http://punbb.informer.com/forums/topic/20948/mod-style-login-box-on-frontpage/">http://punbb.informer.com/forums/topic/ &#133; frontpage/</a><br />but it not work</p>]]></content>
			<author>
				<name><![CDATA[Developer]]></name>
				<uri>http://punbb.informer.com/forums/user/15415/</uri>
			</author>
			<updated>2009-05-07T07:14:22Z</updated>
			<id>http://punbb.informer.com/forums/post/127468/#p127468</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help with Login]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/127465/#p127465"/>
			<content type="html"><![CDATA[<p>Please, post here the code of JS-function &quot;process_form&quot;. Maybe there is an error in this function.</p>]]></content>
			<author>
				<name><![CDATA[Slavok]]></name>
				<uri>http://punbb.informer.com/forums/user/13265/</uri>
			</author>
			<updated>2009-05-07T06:18:28Z</updated>
			<id>http://punbb.informer.com/forums/post/127465/#p127465</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Help with Login]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/127461/#p127461"/>
			<content type="html"><![CDATA[<p>Hello</p><p>I maded a form for login on my index.html page<br /></p><div class="codebox"><pre><code>&lt;form id=&quot;login&quot; name=&quot;login&quot; method=&quot;post&quot; action=&quot;login.php?action=in&quot; onsubmit=&quot;return process_form(this)&quot;&gt;
            
                    &lt;input type=&quot;hidden&quot; name=&quot;form_sent&quot; value=&quot;1&quot; /&gt;
                    &lt;input type=&quot;hidden&quot; name=&quot;redirect_url&quot; value=&quot;&lt;?php echo $redirect_url ?&gt;&quot; /&gt;
                    Username
                    
                    &lt;input type=&quot;text&quot; name=&quot;req_username&quot; size=&quot;16&quot; maxlength=&quot;25&quot; /&gt;
                    &amp;nbsp; Password
 
                    &lt;input type=&quot;password&quot; name=&quot;req_password&quot; size=&quot;16&quot; maxlength=&quot;16&quot; /&gt;
                    &amp;nbsp;&lt;a href=&quot;#&quot; onclick=&quot;document.login.submit(); return false&quot;&gt; Login&lt;/form&gt;&#039;;</code></pre></div><p>but when i enter the username and password it redirect me to login page and then <br />say me to confirm the username and pass<br />how can i made that he not ask me that?</p>]]></content>
			<author>
				<name><![CDATA[Developer]]></name>
				<uri>http://punbb.informer.com/forums/user/15415/</uri>
			</author>
			<updated>2009-05-06T21:02:26Z</updated>
			<id>http://punbb.informer.com/forums/post/127461/#p127461</id>
		</entry>
</feed>
