Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [login]

The tag has no usage guidance.

1
vote
1answer
7 views

Locked out of my Account, how to get back in?

This really stressing me out! When trying to log back in to Craft CMS today after som time my password wouldn´t work. I have not changed it and when trying to reset the password I´m only getting: "...
1
vote
1answer
19 views

Save and login user in a Plugin?

How can I register and login a user in my Controller? I have tried something like this: $newUser = new User($userName, $userPassword, $userEmail); Craft::$app->elements->saveUser($newUser);
1
vote
1answer
18 views

Log in User (Craft 3)

How can I log in a user in Craft 3 and redirect to a url? This doesn't work: $username = $user->username; $userCode = $user->teamCode; Craft::$app->user->login($username, $userCode); ...
1
vote
1answer
20 views

plugins route post controller?

I am developing a custom authentication plugin for Craft 3. But I can't route to my Controller via POST request with my login form. Request via GET work
1
vote
2answers
24 views

How to disable plugin Disable and Uninstall?

I am developing a site with a customer logged in area. I don't want anyone to access the section if they are logged out and instead redirect them to the login form. I could just add {% requireLogin %...
1
vote
1answer
72 views

Craft 3 Element API Authentication/Login

First things first: This is quite similar to this, yet different. I'm trying to get authentication/login for Element-API for Craft 3 to work. Meaning I would like to restrict access to certain ...
0
votes
0answers
16 views

Craft CMS 3 - Can Login Using Chrome - Cannot Login using Firefox

deployed this website on a shared Hosting and: 1) Can Login Using Chrome 69.0.3497.100 (Build ufficiale) (a 64 bit) EVERYTHING WORKS exexpt for An unknown error occurred. when saving entries (get ...
0
votes
1answer
21 views

Case Sensitive username

Is craft's username field case sensitive when logging in? I'm importing 80 users into the database and when emailing the users I want to be sure how this works so we don't hit issues when they all ...
1
vote
1answer
43 views

Programmatically Login From Plugin

I'm writing an LDAP authentication plugin, which, if the authentication matches, will log the user into a 'general' username/password, in order to view a protected page. The 'general' username/...
1
vote
1answer
17 views

Possible to set Forgotten Password path in config?

Looking at the documentation here: https://docs.craftcms.com/v2/config-settings.html#users I have set loginPath, invalidUserTokenPath and setPasswordPath. However, it appears that there isn't a ...
1
vote
2answers
88 views

400 error logging into local Craft 3 project

I have just tried to log into an old local Craft 3 project that hasn't been worked on in a few months and I'm getting the following: HTTP 400 – Bad Request – yii\web\BadRequestHttpException Unable ...
0
votes
0answers
30 views

How to realize Front-End Logins/ Paywall for page content?

Well the basic premise of what i want to do is create my content in Craft CMS, but for the visitors to see it they need to have an account. In the end i want to be able to sell these accounts. Kind ...
2
votes
1answer
55 views

Invalid Verification Code Customization?

When a user attempts to reset their password, they're emailed a link -- if they click on this link late, or click on it twice, they're shown the "Oops! Invalid verification code. Please login or reset ...
1
vote
1answer
48 views

Craft 3: Non-Admin Users Can't Login

Here's an odd one: I have a site with many users, only a few of them admins. Any admin user can login either via the /admin control panel or through a frontend login, which follows the example from ...
1
vote
1answer
45 views

Locked out of the admin interface

I'm having an issue with the login-page and since this is my first Craft website, I'm a little unsure of where to begin to look. When attempting to log in to the admin interface, my username/...
1
vote
0answers
81 views

Refresh “hidden” template after login with ajax

I am trying to create a seamless user login interaction with a modal form using ajax. Let's say I have a navigation template _navigation.html <div> {% if currentUser %} {{ currentUser }}...
1
vote
1answer
62 views

Login grayed out, logins rejected

We have web site with CraftCMS Pro 2.6.2930. Due to development of new site, we set test web server (Centos/Apache/mariaDB) in our local network and migrated whole site there for testing (2.6.2993 ...
0
votes
0answers
32 views

Craft 3 MFA login plugin

Is anybody aware of a Craft 3 compatible plugin for MFA? We want to require MFA for logging into the CP. I'm not having any luck finding one yet, was there a good one in Craft 2 that people used?
0
votes
0answers
57 views

saveUser form action posting elsewhere?

We have a page where a user may use one form to login to their Craft account on the front end - and one form where they can create and account. See the page here: https://www.cadex.com/shop/account/...
0
votes
0answers
90 views

How to fix non unique ids with login/register/forgotPassword forms?

I'm a bit confused about the the fact that basic user forms (login, register, forgotPassword) use the same ids in same cases. As you can see from the official documentation for password recovery and ...
1
vote
1answer
46 views

After switching from PHP 5 to 7 for a local 2.x install, I can't login

I have Craft running locally, the latest 2.x branch. When I change the server to run PHP 7 instead of 5.x, the local Craft frontend still works, but I can't login to the backend. It says "Invalid ...
1
vote
1answer
202 views

Can't login after installing Craft CMS3

I just installed Craft CMS 3 and I tried logging in as my admin user but its not working. I enter the correct login information and nothing happens. I tried the reset password option but never got the ...
1
vote
1answer
124 views

how to set loginPath in config file

I made a modal for login at homepage and put {%requireLogin%} tag in "User Profile" page. My general.php file looks like below: 'dev' => [ // Base site URL 'siteUrl' => null, ...
1
vote
4answers
167 views

Migrated site - now dashboard keeps logging out

I've migrated my client's Craft site to a new host. On the front end the site is fine and working as it should. The problem is with the Craft admin area. I can login, but once logged I can’t access ...
1
vote
1answer
271 views

Invalid username or password, errorCode:0 but I'm using correct credentials

When I try to log in to CP as admin with correct credentials I'm getting "Invalid username or password" error and the response contains errorCode: 0 (I'm guessing CBaseUserIdentity::ERROR_NONE) Weird ...
1
vote
1answer
101 views

No craft_users table in Database

Good Afternoon. Im trying to recover admin login information for a website I have recently taken on, however there is no craft_users table within the database. Any help to locate the user info would ...
1
vote
1answer
259 views

Adding reCAPTCHA to the admin login page

Is there any plugin or relatively straightforward and accepted way to add a recaptcha to the login for the admin page? My research so far has come up with nothing. I'm curious if others have looked ...
1
vote
1answer
195 views

/login page in Craft keeps redirecting to home page. What could be causing that?

I have a structured channel setup to house all the static pages on the site. All of the pages display fine on the page entry template. But the /login page does not. It displays fine in Live Preview. ...
1
vote
1answer
137 views

Users are always logged out on front end

Users are always logged out on the front end on my Craft website. Even when logged in as admin I can access the CMS but on the front end user session always returns the following. Craft\...
1
vote
2answers
35 views

What might cause logins to work locally yet not in deployed environment?

We're getting a 404 (or a Craft 'page not found' error) with this path on the remote server: http://foo.example.net/admin/actions/users/login Same database using remote mySQL. Local logins work fine....
2
votes
2answers
526 views

/admin/actions/users/login 404

When trying to login to my live env on craft, I get the following error in the javascript console. [Error] Failed to load resource: the server responded with a status of 404 (HTTP/2.0 404) (login, ...
1
vote
1answer
1k views

Login - Bad Request: The CSRF token could not be verified

I have just deployed an existing site to a new server. As the DNS is not pointing there yet, I have simply edited my /etc/hosts file on my Mac to point to the IP address for testing. Whilst checking ...
1
vote
0answers
198 views

Problem cloning existing Craft instance on staging

I copied my entire existing install on a new staging server for some developmental work. Right now the craft/config/db.php file has not been changed and it is still connected to the production ...
0
votes
1answer
1k views

Craft CMS login 500 (Internal Server Error)

I transferred a website using Craft CMS and now when I want login to admin the console return me jquery-2.2.1.min.js?d=1493126871:4 POST http://website.com/index.php/admin/actions/users/login 500 (...
0
votes
1answer
466 views

Can not login in the control panel: Internal Server Error 500

The website ist working, but I can not login in the control panel. In the console: 500 Internal Server Error - .../resources/lib/jquery-2.2.4.min.js?d=1493300895 setcookie() expects parameter 3 to ...
1
vote
2answers
58 views

Authentication by a custom field

I added a field called "phonenumber" to the user profile fields which I want to use for login purposes, too. Usually Craft allows an authentication by username or email-address. Is there a way to add ...
2
votes
1answer
815 views

Customizing front-end login/logout redirects

I have "manage" link that redirects to domain.com/login. "login" is custom front-end page that after logging in redirects to homepage. After logging in when I click "manage" again the domain.com/login ...
2
votes
2answers
244 views

Public url for assets when logged-in

I'm creating a website where I want users to be able to login. I'm using https://craftcms.com/docs/templating/login-form to achieve this. No problem so far. When a user is logged in, I want the user ...
1
vote
2answers
331 views

Login redirect is not working

I am currently trying to make it so when I have logged in on my website as a user it redirects to a certain page. However it is not working. I have tried adding the following redirect in the ...
2
votes
1answer
135 views

Craft - suitability for membership/user registration and document upload/management

I have created about 30 sites using Perch but find it somewhat frustrating, especially the support. Considering using Craft for my next project but can it handle: Membership/user registration. Ie can ...
2
votes
1answer
470 views

Redirect issue with login and paths

I'm gonna probably find another way around this, but I'm still very new to Craft and want to ask if I'm missing something obvious. This is a commerce site that needs a front-end login. I have an ...
3
votes
1answer
168 views

setPasswordPath being ignored

Any idea why the following would be ignored following a frontend new password form? The user group does not have access to the control panel. 'setPasswordPath' => 'account/login/password/new', ...
1
vote
1answer
178 views

Looking for a good explanation on Craft login and if it is using persistent cookies or session cookies, etc…?

I am coming from a .NET/C# authentication and session environment. I have used {% requireLogin %} to create a secure area on the front-end of my website, but it seems that the login credential (or ...
1
vote
1answer
177 views

How delete a user session with the element api?

I need a function to logout a craft user and delete the session of that user. This must take place in the element API plugin as an endpoint. Something like this: function userLogout(){ if (craft()...
1
vote
1answer
519 views

Unable to Log in

I am locked out of my site (a new project still on my local MAMP server) and can't log back in. I have tried to rest my password but I haven't received any emails. I also tried to go through MYSQL and ...
2
votes
1answer
204 views

“An unknown error occurred.” appears when I try to log into Craft's admin using browsersync's proxy mode

I've stumbled upon a weird thing. When I run browsersync as browser-sync start -p localhost:8000 and try to log into Craft's admin at localhost:3000/admin I get the message "An unknown error occurred....
2
votes
2answers
625 views

CMS login redirects to back to login

I have an existing CMS website that seemingly has been working fine for several months. Just recently we have lost the ability to access the admin portion of the site (the rest of the site works well)...
1
vote
1answer
68 views

1 click auto login for user accounts

Looking to setup a public facing, launchpad page that lists out all of the user accounts with a 1 click login. I realize the security implications of such a page but we need something like this to ...
1
vote
1answer
57 views

Why is a “Brute Force Protection” dialog appearing on login? How to remove? [closed]

After successfully logging into admin I seem to be getting this message in a browser auth dialog: Brute force protection, Please use these credentials: User = 'u' and Password is the answer to 1+1” ...
2
votes
1answer
30 views

Autologin destination

A bit of an extension of my previous query at Auto-login on account activation I want to a user to: automatically login on account activation, and be redirected to a predetermined page on account ...