Questions tagged [users]

Craft member accounts.

Filter by
Sorted by
Tagged with
1
vote
1answer
13 views

Default Users Password Regex

Assume a front end registration form. I would like to validate user passwords before posting to the server. I have not been able to find the default password requirements as of yet for craft 3. Could ...
1
vote
1answer
36 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 ...
0
votes
0answers
27 views

Import user passwords

I'm using Feedme to import users from one Craft site to another via an XML feed. I'd like to include users passwords too. I thought that {{ user.password|hash }} would do the trick but when I test ...
1
vote
1answer
20 views

How to check if a user's new email has been verified

Background When the user setting Verify email addresses? is enabled, and the user's email is reset by a non-admin the address requires verification before being used as explained here. This does not ...
0
votes
0answers
25 views

Craft 3 - User Upload File

I have a front end form and it's goal is to upload a file that can be seen in the users area in craft 3 backend. How can i do this in craft 3 with twig. I know how to save users input fields like in ...
1
vote
1answer
30 views

Set User's entry field from PHP in Craft 3

From this question, I tried: $user->setAttributes(['products' => $userProductsIds]); return Craft::$app->getElements()->saveElement($user); Where $user is an instance of craft\elements\...
1
vote
1answer
27 views

Move users with Feed Me

Is it possible to move users along with their passwords? I can see the mapping option, but how do I output password in a template (I'm moving data between craft installations). The below code does ...
2
votes
1answer
25 views

Autologin after frontend registration

I have a frontend user account registration form and I d like to auto login the user automatically after the account creation. So the user can choose a subscription plan and pay immediately after, ...
1
vote
1answer
80 views

Craft 3 - login problem on mobile

I have a site which is online now. This site has a set password, log in, etc. features for my users. My users are able to sign in or set password (all user operations) on any browser but when they ...
2
votes
1answer
56 views

Multi-site - Setup remote asset volume to store assets on a per site/folder basis

We've got a Craft 3 (3.1.25) multi-site setup with three sites: Corporate (default) Brand A (brandA) Brand B (brandB) For this install there's 3 users setup with the following access to the sites. ...
1
vote
1answer
43 views

How to enforce capitalisation on users First Name and Last Name

We have developed a Craft 3 site that has user registration. Once a user account has been confirmed and activated, they are shown in a Contacts directory, which other users can search through. As the ...
2
votes
1answer
133 views

Craft 3 best way/steps to create a login client area in frontend

I have to make a website that needs an user area with login. In that area users should be able to upload to admin area or download files from admin area. Each user has its own account that is ...
1
vote
0answers
21 views

Customer (Member) Profile Page

I have a site where I'd like customers to login and be immediately presented with their profile page (and ONLY their profile page). On this page they can: 1. See progress reports on their jobs (...
1
vote
1answer
82 views

How to pragmatically set registered user status to pending and then manually send activation email

I have 2 front end registration forms. One for normal users and one for admins. In each form I have a hidden input with a group value like so: <input type="hidden" name="group" value="ypo"> In ...
1
vote
1answer
45 views

Language Switcher with Users

I have the following setup for a language switcher. I have Member Directory pages which are using Users (rather than Entires or Categories). How can I update this to get it working on these pages? {% ...
1
vote
1answer
23 views

Revoke user permissions but not change the usergroup

I have a client who would like to edit a users permissions. However instead of adding permissions on a per user basis, they would like to remove permissions for that user by unchecking the item. ...
0
votes
0answers
20 views

What are the options for adding a new Craft user to a Campaign Monitor list?

I have public user registration on the front-end of a site. I'd like new users' email addresses to automatically be added to a Campaign Monitor list when they register. I see that Freeform's Element ...
1
vote
2answers
40 views

Commerce 1 get customer from user model

In PHP, is it possible to grab the customer model from a user model? EDIT: I just noticed that it is possible to attach a customer info field to the user. How do we achieve this?
1
vote
1answer
31 views

How would one allow users to edit only some other users entries but not all? Linked via a related field

I have users that are assigned to an organisation. An organisation can have many users. I would like users within the same organisation to be able edit entries (in this case projects) created by a "...
1
vote
2answers
38 views

Querying an array of users

I need to displaying some notifications on a Craft site, and I want to allow users to mark each notification as read. There won't be many users or notifications, so a plugin seems overkill. Instead I'...
1
vote
1answer
26 views

How to determine if a user's email has changed

I'm trying to determine if a user has changed their email address via a front-end form. From what I've gleaned, the best way to do this would be by checking the existing record during users....
1
vote
1answer
33 views

Can I use Craft to Manage Site Access?

User Access Question... Can I use Craft to create users that can only use the site? These users would only be viewers of the content. They would NOT have access to Craft or any of its features. ...
1
vote
1answer
41 views

Access Default User Photo

I'm calling user photo's from my template, but it error's out when trying to obviously call a user photo which is empty. What I'm trying to achieve is if there is no user photo, use the default ...
2
votes
1answer
125 views

How to store custom data into a user

I need some direction in how to store (complex) data into users (best practice) I'm working on a project for a fitness app. I created a structure with 2 levels for workouts where level 1 entries are ...
1
vote
2answers
229 views

Edit Entry Page

I currently have a freeform which allows logged in users to create an entry from the front end. I'm looking to build an edit page for each of these entry's so the user can come back and edit it if ...
0
votes
0answers
38 views

Only allowing users to change their own profiles

I have added public profiles following an answer on this stack exchange and it works great, the problem arises when adding a "User Profile Form" which allows users to update their own settings. The ...
1
vote
1answer
72 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
0answers
142 views

User account registration using Craft 3

I wanted to build a commerce website using Craft 3. And I wanted to create parent registration form so each parent will have an account to use on the site. Then after they sign in I want them to be ...
1
vote
1answer
83 views

Craft 3 setPasswordPath config not working for front end users

How do I change the link that's sent in a forgot password email that's sent to front end users in Craft 3? The setPasswordPath config isn't working for me. The users don't have access to the CP. In ...
2
votes
1answer
214 views

How can I set new user accounts to pending status in a Craft 3 module?

I have the following code in my site module: Event::on( User::class, User::EVENT_BEFORE_SAVE, function (ModelEvent $event) { /** @var User $user */ $user = $event->...
1
vote
1answer
86 views

Craft 3 validate new password in change password

I'm trying to validate user's new password and confirm password in my custom plugin init(). Event::on(User::class, User::EVENT_BEFORE_SAVE, function(Event $event) { $formData = $_POST; $...
1
vote
1answer
50 views

Getting a entry link created by current User

I am trying to create a link that would allow a logged in user to access their profile from the front end. Basically, the user has one page they can edit from the front end when logged in, and I'd ...
1
vote
2answers
264 views

Craft 3 protecting a page with a password?

I have used the Guest Entries to create a plugin where anonymous users can create a entry. I have a password field on each entry. Now I want the guests who have created the entry to be able to login ...
1
vote
1answer
47 views

User Account Form Dropdown

I have a Countries dropdown menu for signing up that i didn't have before. It used to just be a text field where they can input their own country. It works on the front end sign up form properly, but ...
1
vote
1answer
33 views

Craft redirects to domain.tld/domain.tld/ on logout

I have a logout button on my site that points to the logoutUrl. While the logout works and ends the user session, the user is brought to a page with the URL similar to domain.tld/domain.tld/ where ...
1
vote
1answer
55 views

Allow users to edit user account email from front end form in Craft 3?

Is there a way to allow users to edit their email address via a front-end form in Craft 3? My understanding is this would require an 'elevated' user session. Which I'm guessing can only be achieved ...
1
vote
2answers
43 views

Set Password on Test User Account in Localhost

I'm trying to set the password for a 'test' user account on my localhost test site. I don't have an email server to send the reset emails, so I've been using the copy URL method. When I do go to the ...
1
vote
2answers
33 views

Individual Content dripping per user

I am building a site where I need to give each individual user access to site content according to the user progression of content consuming. For the example, User A has access to watch entry no.1, ...
0
votes
1answer
110 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
472 views

Craft 3 How to get custom user field values

I have following custom fields for users. favouriteEntries - 'entry' type field with multiple entries per user notificationPreference - Lightswitch field My plugin should email notifications to ...
2
votes
1answer
100 views

Separate User Groups / forms

I have two forms on my site, one that you can use to sign up as a registered user that allows you to view content through out the site and participate in steps (tests) etc. The second form is a form ...
1
vote
1answer
42 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
1answer
132 views

Displaying errors on frontend user forms

I'm trying to get some feedback for the user on registration when the username already exists but I don't know in which object the errors are. I use the form they provide in the docs: https://docs....
1
vote
1answer
32 views

Plugin stops working when logged out

I have a plugin that sets the user group based on whether a hidden checkbox has been ticked on the sign up form. The plugin works exactly as I want it to while I'm logged in, but as soon as I log out ...
1
vote
1answer
88 views

frontend account edits

I have an account page for all my users, however i'm running into a small issue with being able to update passwords / emails on the frontend. Any advice on how to do this? I read that updating either ...
3
votes
1answer
39 views

Generating thumbnails when using a memcache server for session storage frequently signs users out

I can't figure out why, but when I'm connected to a memcache server the thumbnail generation process in Assets hangs for long periods of time, the getElements process throws 403 errors, the generating ...
0
votes
1answer
32 views

Craft 3 Custom Set Password Styles

I've been building frontend pages for non-admin users with layouts matching the rest of the enduser site. For the "Set Password" page, I was able to build the form and set it up via the ...
2
votes
1answer
95 views

How to get the unverifiedEmail value of a user after a change email request?

The currentUser.unverifiedEmail variable, which is public, is always empty on front end even after email change. I thought it was a bug. I contacted Craft support about this, and here is Brad's ...
3
votes
1answer
41 views

User activation success page localization problem

I have a website with Craft CMS 2 and this site has 2 diffrent languages. There is no problem with sending e-mail for account activation for each language but when a user tries to activate his/her ...
1
vote
1answer
50 views

How can I get the id of an unverified user on front-end?

I would like to build a send activation email form on front-end, for users who didn't get or accidentaly delete the activation email. I can call the users/send-activation-email action to achieve this,...