Jump to content

Search the Community

Showing results for tags 'login'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

  1. Hi, We're looking at creating a 3 level (guest, member, admin) user levels for accessing frontend content via a login. I have seen https://processwire.com/talk/topic/107-custom-login/page-1 which talks about creating the user login page. I have also seen http://modules.processwire.com/modules/frontend-user/ which is an older module which seemingly handles this but is still in alpha. We are creating a system where users need to login to see comments (members) but admin users are able to see additional information on some pages. What I'm looking for is something a little like: Can we hook into the User roles to do this? Thanks Pete
  2. HELLO! I'm using $user->isLoggedin() three times on one template (in the head.inc, template-page.php and foot.inc). I'm using a custom login in my template file: // If they aren't logged in, then show the login form if(!$user->isLoggedin()){ // check for login before outputting markup if($input->post->user && $input->post->pass) { $user = $sanitizer->username($input->post->user); $pass = $input->post->pass; if($session->login($user, $pass)) { // login successful $session->redirect($homepage->url); } else { // login error $session->login_error = 'Login Failed. Please try again, or use the forgot password link below.'; } } if($input->post->user && $input->post->pass) { $login = "<p class='error'>" . $session->login_error . "</p>"; } $login .= "<form action='./' method='post'><div class='login'> <input type='text' id='user' name='user' placeholder='Enter your SP Company Code' /> <input class='hidden' type='password' name='pass' value='' /> <p><input type='submit' class='btn' name='submit' value='Login' /></p> </div></form>"; } // end !logged in Using the correct logins works and everything is cool, but putting the wrong passwords in creates a Internal server error on both the head.inc and foot.inc $user->isLoggedin() functions. I'm probably doing something absurdly stupid here, any ideas? thanks
  3. Hello, I have a site with users that have a custom user template setup on PW 2.7.2 stable. Custom user template is "member" and role for those users also "member". The site has a frontend dashboard where users can edit their profile, events etc. I can login with this user type to the backend fine and the permission settings are all working. When I login to the frontend, I get this error: "Fatal error: Maximum function nesting level of '10000' reached, aborting! in .../wire/core/Wire.php on line 333"; I already raised the xdebug.max_nesting_level from 1000 to 10000. When I set it to 100000, the server disconnects. I can see that the user gets logged in with $session->login($uname, $pass) before the error is thrown. EDIT: When I reload the login page after the error shows with the now logged in user, I get this error: "Fatal error: Maximum function nesting level of '10000' reached, aborting! in /var/www/utgpw/wire/core/Fieldgroup.php on line 61" But a $session->redirect($dashboard->url) seems to cause the error. If I logon with a test user that has role "member" but the regular user template, I don't get the error and get redirected to the dashboard fine. All the code in my dashboard template is working. Actually, the whole login and dashboard logic for the frontend is copied from another site where it has been working fine for over a year now. So I guess the problem is related to how the custom user templates are handled in the core. My setup for the custom user template has also proven to work without issues in 2 other sites. I have spent hours on debugging already and now I'm lost. Any ideas that point to the cause of this would be much appreciated.
  4. Hello all, I'm putting first bricks of the social network that I've decided to make using ProcessWire. But before I start I wish to (again) make it clear that I'm not a programmer, I'm more of a designer. I wanted to create this social network for over a year but the developers kept messing it up or charging too much so I decided to make it myself. So, I've decided to go step by step with this. It'll be like mini facebook. Every user will have his profile page as a unique page. Eg. http://example.com/vineet.sawant He/she would have several things to do like posting a 140 chars long status, posting a long post, share images & links etc. For that I've thought of PW's page structure as follows: Home - - Users(hidden page) - - vineet.sawant - - - - bio-page - - - - status - - - - posts - - - - images But for the first step, all I want to do is sign up user & dynamically create a page for him/her same as his/her username. I've already tried FrontendUserProfilesPW module but it gives some error. I wish to do this using default users api. Can anyone guide me on how can I do this? Also most importantly, how do I create page dynamically and add specific template to it? Thanks.
  5. This is my original question asking for access control for a template https://processwire.com/talk/topic/8847-redirect-to-a-url-in-the-access-tab-of-a-template/ Eventually, as of Soma suggestion, I implemented access control and redirection in template itself. The problem is after a sucessful login, the $session ->redirect method only destinate to one assigned url (in my case it is the homepage). Reading the api doc, the session redirect provide just a simple url redirection. NO MORE functionality provided. Then I append a GET variable on redirect url a page template required a specific user role privilege <?php if (!$user->isLoggedin()) { /* get current page id for page redirection after a successful login */ $pageId = $page->id; $session->redirect(($pages->get("template=login")->url . "?redirect=" . $pageId)); } /* required user with role registered to view this template */ if ($user->hasRole("registered")) { $page->title; $page->body; } else { $page->body = "Your account do not have enough access privileges to view this page."; } include('./main.php'); login form template <?php $pageID = $_GET["redirect"]; $lang = ($user->language->name == 'default') ? '' : $user->language->name . '/'; if ($user->isLoggedin()) { $session->redirect($config->urls->root . $lang); } if ($input->post->user && $input->post->pass) { $username = $sanitizer->username($input->post->user); $password = $input->post->pass; $pageID = $input->post->redirect; $redirectPage = $pages->get($pageID)->url; try { if ($session->login($username, $password)) { if ($redirectPage) $session->redirect($redirectPage); $session->redirect($config->urls->root . $lang); } else { $error = "Wrong username or password. Login failed."; } } catch (Exception $e) { $error = $e->getMessage(); } } $form_title = __("Sign In"); $form_user = __("User"); $form_pass = __("Password"); $form_submit_btn = __("Sign in"); $form_error = __("Login failed"); $page->title = "User Login"; $page->body .= " <div class='container'> <div class='col-md-12'> <div class='login-box'> <div class='panel panel-default'> <div class='panel-heading'> <h3 class='panel-title'><span class='lock-icon'></span><strong>$form_title</strong></h3> </div> <div class='panel-body'> <form role='form' action='./' method='post'> <div class='message-error'>$error</div> <input type='hidden' name='redirect' value=$pageID /> <div class='form-group'> <label for='user'>$form_user</label> <input type='text' name='user' id='user' class='form-control' placeholder=$form_user /> </div> <div class='form-group'> <label for='pass'>$form_pass</label> <input type='password' name='pass' id='pass' class='form-control' placeholder=$form_pass /> </div> <button type='submit' class='btn btn-sm btn-primary'>$form_submit_btn</button> </form> </div> </div> </div> </div> </div> "; include('./main.php'); ?> Retrieve the original url from the GET variable and store in a form hidden field. When a successful login, checking this variable, if null , redirect to homepage or otherwise to that url is it secure to implement in this way ?
  6. Hi Forum, I need to secure some downloads with a simple login form. As login tasks are new to me I try to adapt the code from this forum post for my purposes. This is where I am so far: A page with input field type "password" (name "password"). This code: <?php password protected areaif ($page->password) { $pass = $page->password; if ($input->post->pass != $pass) { echo "$page->body" . file_get_contents("./_login-form.inc"); // not logged in? get input form } else { foreach ($page->downloads as $file) { echo "<h2>Sie sind eingeloggt</h2>"; echo "<ul>" . "<li class='plain'><i class='fa fa-download'></i><a href='$file->url';?> $file->description</a></li>" . "</ul>"; } // foreach } // $input->post} //$page->password?> And for _login-form.inc <form method="post" action="./" accept-charset="UTF-8"> <input type="password" id="pass" name="pass" placeholder="" /> <button type="submit" name="submit" class="btn btn-success btn-block">Login</button></form> Unfortunately the conditional always returns false even if the correct password has been entered into the form. This is the first time I'm using fieldtype password, thus I don't know how to check for the correct password entered (I understand the value is stored encrypted but that's all I know). Any help is much appreciated. Thanks!
  7. Hello guys I am experiencing a very weird admin login issue. I have the correct password and when I login to admin, first it does let me login, but after going to 3-4 pages it suddenly automatically sign me out and when I try to login again, it prevent me to login and I can not login any more. When I try in a different browser or Mac the same thing happens. Everything worked fine before and nothing has been changed and it suddenly started to do have this weird issue. Could you please help me out. This the URL of the admin http://www.greenpeas.no/admin/ Thanks in advanced
  8. I am using PW from 1 week and Love this , its really simple and amazing and development time is so less. i am developing one application which show links (URLS) and admin will post these links from admin panel. now i am trying to have a user section where user will login and after login user can save these URLS in his FAV box. i am searching on forum from last 3 days and found so many codes but i can't figureout how to get what i want. i want normal user register / login / profile / logout / forget password section. in user profile, user can update its details , change password and see FAV links which he saved before. i will really appreciate any help with code or appropriate link or module etc. Thanks
  9. Got home to some strange behaviour on one of my development sites - not able to login. I have seen this: processwire.com/talk/topic/4011-cannot-login-to-admin-area/ But nothing there works. If I try changing the password, still can't sign in. Using SessionHandlerDatabase, and have cleared those caches too. Could that module be an issue in 2.5.25? I am running another few local sites on that version, but am not experiencing the same issue. Nothing in any error logs anywhere. Login form doesn't show any errors either. Wondering if the installation in question has gone all bonkers on me... Update: I also have the Forgot Password module enabled. Interestingly, when I click on it, it just shows the normal login form... Isn't it supposed to just show email? The URL does include ?forgot=1...
  10. Hi guys I try to create a custom login page. So i read a lot in the forum about this, but i don't understand how i have to implement it. The login page was no problem, i use the code from ryan here: https://processwire.com/talk/topic/107-custom-login/?hl=%2Blogin+%2Bcustom And customize my login page. At the moment is this site my default admin page: /admin. So my first idea was..I create a new site called "login" and add my custom Login site as template to this site. This worked fine, but now i have two more problems: First, when the user logout via the custom logout links, he gets back to the old default login site "/admin". I've tried to change this in the admin template, without success. I use the Default admin theme. Second: The created page "login" is visible in the site tree, but it should be hidden for non admin user, so i move the "login" site below the admin site, but now the non admin user cannot access the site anymore. I also tied to customize the template access, but the site are still visible. Can anyone explaine me a better solution for this? Greats
  11. Hello! First of all, I am really looking forward to have lively conversations with you all, and becoming skilled with PW, I think this might be exactly what I have been looking for. Last month I decided to learn code, registered myself at codecademy, completed the HTML and CSS tracks, and recently have been producing some nice one-pagers with Foundation. This morning I watched the two episode Philipp Reiner special on how easy it is to simply copy-paste the HTML into PW, and then make the necessary changed to have it dynamic. --- Now, I installed PW in a subdir: 'www.rinaldi.nl/projects/pw' and for some reason it shows the Default template, but clicking on the admin link does not bring me to the admin login. I have done everything in the troubleshoot guide, I have mod_rewrite enabled, uncommented the rewritebase /pw/, etc. The only thing I haven't tried yet, is to start all over again with a clean install. But maybe this isn't necessary(?). Is there anything else that I have to take into account? Thank you.
  12. I didn't have time to look into the code, so I have to ask here: is there a limit for the password length? I'm using LastPass and wherever it's possible I use ridiculously long passwords. And so I did in PW for an admin password. After a logout I couldn't log in again. I managed to do that only after setting the pass to something shorter than 50-chars. I see no reason why the passwords could have been limited (as they're hashed anyway), so that totally might be something on my end (or LastPass). But, just in case, I thought it's worth mentioning here as a potential issue.
  13. Hi, I've just set up a client area with ProcessWire based on Ryans step by step guide here - It's pretty much identical, client areas are rendered depending on the users name. This means I can only have one login per client since users names must be unqiue. Often there's time where I have multiple contacts for one client and ideally I'd like to create a user login for each person involved. One login per client works, but ideally I'd like a unique login based on their email address. Is there a way to allow users to login using their email address and using a users name more than once? No worries if this isn't acheivable, I'm extremely happy with PW and have been very impressed at how easy it is to use. To all those involved, great work! Cheers
  14. I'm working on a project where I've got about 500 members. These members each have their own page with fields that they can edit and others that they can only view, all these member pages are under a parent page (members). Each member's page is bound to the user's profile using a pagefield in the user profile. I would like to have a login form on the sidebar where members log in from the front end and are immediately redirected to their particular page. I plan to use Fredi module to allow them to have front end editing access for their page. I don't want them to access the backend at all. All suggestions welcome. Thank you
  15. Hi guys, I'd like to center the admin login form. Here's how it is now: http://api.drp.io/files/5442717971fe5.png Any suggestions on how to center it? I've tried to do it but it broke all the responsive layout... I guess my css skills are a bit rusty...
  16. Hi. I installed PW as indicated wizard. When I click the button 'Login to admin' shows me a 404 error. What can I do?
  17. Hey guys, I'm new to PW. I'm trying to make a website where my clients can signup/login and set up their profile. Also, their customers have to be able to signup/login and view their profile. Basically, i have clients that will login and set up their own information in the website. Details included will be something like company name address contact info product image product description price Once my clients log in and input this information their customers can go to the client's web page and view the information and purchase items. So i basically need to know how to set up the users so that: clients can sign up and input their information which will output to a web page customers can log in and see the clients information where they can purchase items is there a module that caters for this already? Does the PW database cater for this? Any information on how to do this would be greatly appreciated! Regards, Nick.
  18. I'm getting reports from a client that PCs running IE8 & 10 on an internal network with ChromeFrame plugin installed won't stay logged in to a site that is set up with all the content behind a login form, i.e. on the front-end, not logging into the control panel. Disabling the plugin in the browser makes the problem go away. So does updating .htacess from <IfModule mod_headers.c> Header set X-UA-Compatible "IE=edge,chrome=1" <FilesMatch "\.(appcache|crx|css|eot|gif|htc|ico|jpe?g|js|m4a|m4v|manifest|mp4|oex|oga|ogg|ogv|otf|pdf|png|safariextz|svg|svgz|ttf|vcf|webm|webp|woff|xml|xpi)$"> Header unset X-UA-Compatible </FilesMatch> </IfModule> to <IfModule mod_headers.c> Header unset X-UA-Compatible </IfModule> This seems to have solved the issue but I thought it was worth mentioning here anyway.
  19. Hi Forum, weird behavior on one of my new websites: The site is already on the live server since days and I've created 5 users out of which one can't log in: "request aborted because it appears to be forged." Even more strange: I can log in with the users credentials and the same browsers, no problem (I'm of course at my desktop and not at my users office). The user swears that he has used the right credentials. I've gone through the relevant discussion but it wasn't of much help as this case is somehow different. I suspect the cheap semi-professional hosting company that the client has chosen against my advice - but that leads nowhere. I have to debug my own installation first anyway. Any ideas? Thanks EDIT: The client just reports that he can log in with browser in privat mode.
  20. Dear ProcessWire-Community, first of all I want to apologize for my weak english. I'm german and will try my best, but I hope you can forgive me if I missspell something or can't explain it in the right way. Further I want to point out, that in the last few weeks I've become a big fan of the ProcessWire CMS. The free structure with no useless functions and the great community made this CMS to one of my favourite CMSs. And that's the reason why I would like to ask for your help. I'm developing right now an medium-sized website and for this website I'm using the Template Twig Replace-Module. This module is great for saving lots of PHP-syntax, but is also very strict when you code wrong. For this website I want to implement an search and front-end-login-function and even though there are great tutorials for those functions available in PHP, I don't know how to translate those functions into the Twig-syntax. For the front-end-login-function I would like to try out this script. And for the search-function I would like to use the function from the search.php-template file, which is available when you first download ProcessWire. Now here is my question: Would somebody of you like to help me translate those functions into the Twig-Syntax or could someone explain to me how to use PHP-functions within the Template Twig Replace-Module. I know this is a lot to ask for and that this is a ProcessWire-forum and not a Twig-forum, but you would help me a lot. Sincerely, Andreas
  21. Since upgrading to the latest dev branch, I can only login to the backend with a user having the 'superuser' role. To test this I created a new role: 'test' and ticked every box, giving it full permissions. I then created a new user with just the role 'test' and tried to login. I just get the error message: "TemplateFile: You don't have permission"
  22. So, I was looking to implement the remember me for the login. I didnot find a module for that. The functionality will be some token saved on the user side, and on the first request make the user authenticate if he/she has the token with the request. So the question is what will be the first hook, which will be called, so I can implement the hook to add the implementation. Do you have any insights on the same?
  23. Is it possible to block another user from logging in when someone else is logged in already? The reason I am asking this: I'm setting up a test site for prospective clients. I have arranged it so the site gets set back to the original state every time someone logs in (DB gets restored from a backup copy). If someone else tries to log in at the same time though, things get messed up and have to reset things manually. So I would like to make it impossible to log in if someone else is logged in already and show a message to that effect. My problem is I haven't figured out how to detect if another user is logged in before logging in. (I am using the PageEditSoftLock module, but for this it is not the right thing, even with the hard lock turned on. I need to keep other users from logging in, not just from editing pages.)
  24. Dear all, A beginner here. When I went to this link:http://processwire.com/api/user-access/ to find out how to make login/ logout pages, nothing showed up. Any tutorial regarding this topic for guidance? I'd like to have two different groups of users and each goes to certain different pages after login. When they are logged out, both can see some general pages. Probably there is a very basic answer but I am not an advanced web programmer. Help me out, please Thanks
  25. **** UPDATE *** nevermind. seems to be an issue with my server/php. by testing it on another server, everything runs as expected. thanks! ******************** Hey ryan! i ran in a very special problem today: i moved a page to another server. (Im using V2.3) everything is good, except: i cant login as admin - because there is a problem rendering the submitbutton... in ProcessLogin.module i get a strange error: "Fatal error: Call to a member function attr() on a non-object in /Applications/MAMP/htdocs/[...]/wire/modules/Process/ProcessLogin/ProcessLogin.module on line 123" this is caused by trying to add the submitbutton rendered by InputfieldSubmit.module.... BUT: if i uncomment 123: $this->submitField->attr('name', 'login_submit'); 124: $this->submitField->attr('value', $this->_('Login')); // Login form: submit login button and 134: $this->form->add($this->submitField); everything of the loginscreen gets sucessful rendered (but without a login button, which is... well.. unusable the module itself (version 100) is fine, and taken fresh from git.. (i'm running in the same problem using the password-forget module)
×
×
  • Create New...