Questions tagged [login]
The login tag has no usage guidance.
145
questions
1
vote
1
answer
51
views
Can't login to control panel
not sure what I did but my DEFAULT_SITE_URL in .env was set to http instead of https 0and when I tried to login to control panel on my desktop the page would load but when I submit the login form it ...
1
vote
2
answers
117
views
Moved site to new server and can't login
We've moved our site to a new server, and every attempt to log in with known username/passwords comes back as the standard "Invalid username or password" response.
I've tried to follow the ...
1
vote
1
answer
315
views
Update to Craft 4 causing CORS error on login to CP on live site only
I have recently updated a website to Craft 4 and all went well, but now I cannot login to the Control Panel as I'm getting an error:
Access to XMLHttpRequest at 'https://www.xxx.com/index.php?p=...
0
votes
1
answer
100
views
"Unable to verify your data submission" error when logging into Craft Control Panel
After a recent Craft/plugin upgrade, I could not log into the Craft control panel. After submitting the login form, I received the error "Unable to verify your data submission".
I cleared my ...
1
vote
1
answer
103
views
Admin account password doesn't work in local environment but does on live site
Working on a Craft 2 site and trying to login with the admin account. We can login to the live site without any problems but when trying to login to a dev environment (using DDEV) the password isn't ...
0
votes
1
answer
30
views
LastInvalidLoginDate returning NULL, or current date if formatted
I'm wanting to show a user's last invalid login date within the control panel. No matter the value in the database, it comes back as NULL, unless I try formatting it as a date, then the current date ...
1
vote
1
answer
173
views
Admin login not working on production
My admin username is not working on production. It works locally. I can change the password and add a new admin user, which works fine locally. Has anyone run into this before? Prod is on a ...
0
votes
1
answer
29
views
Register form activating other forms
So I have a contact form which shows a popup when it is submitted. I also have a registration and login form. The issue is: sometimes when a user logs in or registers an account, and you go to the ...
1
vote
0
answers
54
views
All logins fail on Craft CMS 3 after code redeploy and database restore
Background:
AWS deployed Craft site.
I pushed an update to the php version (7.0.32 to 8.0x) the container was running on along with an upgrade to Craft (Craft Pro 3.5.15.1 to 3.7.42) and several ...
1
vote
1
answer
209
views
Check user data before login - Events on Craft3?
I need some help with my login process, it's working but I feel it's not the best approach to achieve it
I have the following workflow for the Login process :
1- enter username/password -> press ...
1
vote
1
answer
114
views
How to Sign In/Up using social accounts ( Google, Facebook, Apple)?
I'm trying to let users sign in/up using different social account providers like ( Google, Facebook, Apple).
How can I manage to do that without using the (social plugin)?
Are there any tutorials(...
1
vote
1
answer
86
views
Do i need a [ Craft PRO ] to create accounts/User management for my LMS website?
I'm still a new to Craft and trying to make an LMS website
when i started to search about the [ Sign up/Sign in ] i read that the official docs :
https://craftcms.com/knowledge-base/front-end-user-...
1
vote
1
answer
72
views
Multiple login forms
I have a need for 2 different login forms: customers and professionals. Each login form is slightly different in markup and heading and has different linkages to the registrations form(s) if a visitor ...
1
vote
1
answer
156
views
Persist session from frontend login form to craft dashboard on headless install
Im im using craft as a headless CMS to power a Nuxt frontend.
I have a situation where i need the user to login on the frontend and then be redirected to a url within the craft CMS admin.
My question ...
2
votes
1
answer
215
views
CraftCMS admin login page error "Account Suspended"
Our website was created a couple years ago and our web designer is no longer with us. We have had access to the admin portion of our site and this is how we keep it up to date.
This week when we went ...
0
votes
0
answers
77
views
Browser limited 400 error when logging in
At random times local sites don't allow me to login to admin with certain browsers. Currently I cannot login to a site using Chrome, but can using Firefox. I have had sites that won't login with ...
2
votes
2
answers
755
views
How to modify the login panel
how can i modify the login html?
I specifically want to add an image below the title.
0
votes
1
answer
118
views
currentUser gets cached
I'm having a problem with navigation that seems to get cached.
If the page is loaded by someone who is not logged in, it shows the login button in the navigation (and it should).
Once the user is ...
1
vote
0
answers
68
views
autoLoginAfterAccountActivation doesn't seem to be working
In the midst of an upgrade from 2 > 3 (Commerce on top of that too).
When a user creates an account, it fires an 'Activate your account' email
That email goes through to account/activation-success ...
1
vote
1
answer
100
views
A user deleted my craft Admin account, what to do?
A created user was able to delete the Admin account, now I can't log in Craft anymore with an admin account. How is it possible that a normal user can delete an Admin?
I'm in contact with this user to ...
1
vote
1
answer
311
views
CRAFT_CSRF_TOKEN is failing to write
Seeing some odd behavior in Chrome where we can no longer log into our dev site, which is currently served over HTTP. But, if we try logging in using an incognito window, it works. It looks like the ...
1
vote
1
answer
247
views
can't login after move site to local - empty response
After migrating a site to local i can't login into the backend-part /admin/login.
There is an error message in the browsers console log
VM1974:1 POST http://great-site.localhost/index.php?p=admin/...
2
votes
5
answers
2k
views
Bad Request Unable to verify your data submission and unstyled CP
First of all the control panel login is unstyled, and I'm getting Bad Request Unable to verify your data submission when trying to login to the control panel. I can login using a form on the front end,...
2
votes
1
answer
2k
views
CORS preflight check failing for AJAX login form on different domain
I've built an AJAX frontend login form, using plain Javascript. It works fine until I try and access it from a different domain.
The problem is CORS and the preflight request. The preflight request ...
0
votes
0
answers
31
views
User Login issue for users, its only allowing admin to login from front-end its buffering with username or password is wrong for other users
i used user login form from craft document https://docs.craftcms.com/v3/dev/examples/login-form.html
2
votes
1
answer
180
views
{% requireLogin %} not returning to original page
According to the Craft docs {% requireLogin %} on a page should return the user to the same page after login. This doesn't work for me - the returned page is always the one set in 'postLoginRedirect'.
...
1
vote
1
answer
296
views
Redirect user to language site of choice
On this multi-language site (NL, FR, EN) we're using the saml plugin to single sign on users into the craft site. That part is working fine. Every user has a preferred lanuage returned into a user ...
1
vote
1
answer
119
views
Limit DevMode to admin users?
Is there an easy way to enable devMode only to users logged in with specific permissions?
1
vote
1
answer
382
views
getting active userid by GraphQL?
I build a SPA with Craft CMS and Vue.
I use Vue Router and have three Props. Here is my current router-view:
<router-view
csrfName="{{craft.app.config.general.csrfTokenName}}"
csrfToken="{{...
0
votes
1
answer
328
views
How to override UserController.actionLogin or the login form template in Craft 3?
Hi I'm trying to build a custom authentication plugin for an organization, and I'm having a hard time figuring out how to override the craft\controllers\UserController.actionLogin method. I tried ...
1
vote
0
answers
288
views
What's left to troubleshoot this quirky "Unable to verify your data submission" behavior?
I have a frontend login form that sends a request to Craft's own actions/users/login action. I've used this same process in another project and it works there, but not here, and I can't figure out ...
0
votes
0
answers
110
views
CP login error for (only) one user in particular
One of our client logins has stopped working.
When you try to login there's a spinner and then Failed to load resource: the server responded with a status of 504 () error on index.php:1
Sometimes ...
1
vote
2
answers
413
views
Visitor-facing pages work; admin login doesn't--I can't login in to admin
The login page has no styling, including no Powered by image. This is what displays beneath the site's title:
When I try to login I receive:
Bad Request
Unable to verify your data submission.
The ...
0
votes
0
answers
75
views
Craft 3 Multi-site with no “default” site AND where control panel login route remains intact and additional directories not necessary
Maybe one of you can help me out? I've tried setting up a multi-language site with no "default site" as per Craft 3 Multi-site with no "default" site. So far so good, except the control ...
1
vote
1
answer
61
views
Craft login redirecting to /web instead of /templates?
I've moved my Craft directory to the below:
Templates
Public_Html
Web
etc..
etc..
My previous directory when I installed was:
Public_html > Craft-setup > Web > Templates
Now when I login ...
1
vote
1
answer
174
views
PHP Login & Sessions without Craft Commerce?
I'm trying to implement this tutorial in my Craft CMS site, I've created all the files and they currently reside in public_html, but twig and the .htaccess of Craft CMS is interfering with it.
Does ...
2
votes
1
answer
379
views
Craft 3 Redirect after login based on User field
i'd like to alter the after login redirect URL based on a User custom field, i encountered this but looks like it's not applicable to Craft 3.
I could re-write the whole UsersController class on a ...
1
vote
1
answer
557
views
Invalid username or password
After installing Craft 3 successfully, I can't access the admin panel while using the correct credentials. I get an "invalid username or password" message.
1
vote
1
answer
140
views
Show error when normal user try to login in CP
when I login to my Craft CMS website via a normal user that user doesn't have permission to login to the Control Panel, it displays some error like HTTP 403 – Forbidden – yii\web\...
1
vote
1
answer
416
views
How do you get the user id on the front-end?
I'm using Craft Pro to make a website where users have a private area. Users register and when login happens they are redirected to a page in the private area with respective info about that user.
...
2
votes
1
answer
471
views
Confusion over 'require login' behavior
Quote from the {% requireLogin %} docs:
This tag will ensure that the user is logged in. If they aren’t, they
will be redirected to the Login page, and returned to the original
page after ...
2
votes
3
answers
969
views
Login Modal - How to handle incorrect password / credentials?
I'm developing a site in Craft 2, using a modal to display the login form. The modal can be seen by clicking the Login button at top right.
I'm essentially using the form as outlined in the Craft 2 ...
1
vote
1
answer
285
views
Bypass CP login
I've got a very special case in a big offline installation .
For strange technical and administrative reasons, I must have 5 different Craft instances each one in it's own server (on the local network)...
1
vote
1
answer
262
views
Can't Get Past Control Panel Login. Keeps Redirecting Back to Login Page
I followed this guide to move my local hosting from WAMP, which has been giving me a bunch of 500 errors since switching to Craft 3, to Local By Flywheel. After getting everything configured, I can ...
4
votes
1
answer
587
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
1
answer
2k
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);
2
votes
1
answer
398
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
1
answer
179
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
2
votes
2
answers
572
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 %...
2
votes
1
answer
2k
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 ...