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 [users]

Craft member accounts.

0
votes
0answers
20 views

Limit users to one session at a time

Building a website to host webinars where subscribed users will pay a monthly fee. Need stop multiple people logging in on the same account to gain access. I'm attempting to clear all existing ...
1
vote
1answer
10 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
27 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
17 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
23 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
18 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 ...
1
vote
1answer
31 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
44 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
23 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
25 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
29 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
19 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
56 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
44 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
17 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
59 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
21 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
26 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
34 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 ...
0
votes
1answer
27 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
28 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
27 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
121 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
66 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
20 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
49 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
28 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
46 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
29 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
26 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
38 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
28 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
32 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,...
2
votes
1answer
103 views

Sending activation emails to all pending users

I have around 200 hundred users for an intranet setup on the Craft Users section all as pending status. Is there a way to send an activation email en-mass to all pending users? Rather than having to ...
1
vote
1answer
36 views

Is it possible to change the amount of time a user stays logged in for?

Our users are getting logged out after 1 day. Is there a setting that changes how long users’ sessions will last?
1
vote
1answer
94 views

How can I prevent an account activation email from being sent to an unverified user who registered via a front end registration form?

I have a front end user registration form, and I want users to receive a set password email after they've been activated manually in the back end by an admin. When they submit the user registration ...
2
votes
2answers
128 views

Reverse relationships with entries and users

I have a relationship between users and 'locations', and I'm using the code below to output some markers for a map. This all works fine except for two things: I'm repeating a couple of 'for' loops. ...
2
votes
2answers
60 views

Craft 2 to Craft 3 upgrade: User Photos not migrated to User Accounts

I followed the instructions in the docs at https://docs.craftcms.com/v3/changes-in-craft-3.html#user-photos. I can browse the User Photos in the User Photos Asset Volume in the Control Panel. However,...
1
vote
1answer
68 views

Deleting a user's profile photo via frontend in Craft3

I am having the hardest time allowing a user to delete their profile photo with Craft3. I have tried to follow this thread's answers : Allow user to change or delete their photo for their profile from ...
0
votes
0answers
13 views

Access to a single entry [duplicate]

I have a Channel. I'd like to limit a user-group to a single entry. Is this somehow possible? For now I create a "Single" for each of the entries to use the permissions. But thats not perfect. I have ...
1
vote
1answer
28 views

Else statement outputting three bits of content

I have implemented an if/else statement and when I add the information to the 'else' part it outputs three duplicates of the same content. I am calling the if statement to check if the user is signed ...
0
votes
1answer
198 views

How many users can Craft handle?

I'm looking to use a Craft3 installation as a bridge app to synch a client's contacts from their CRM server to their Email Service Provider, via respective APIs. I'll be storing their contacts as ...
2
votes
0answers
51 views

Bulk resave user entries to trigger onSaveEntry event

Is it possible to bulk save user entries to force an onSaveEntry event. I added a new custom preparse field to Users, but need to trigger a save event to propagate. Regular sections can reindex by ...
1
vote
2answers
70 views

Missing Users tab in CMS

I seem to be missing the users panel in the CMS. Any idea where it could have gone? For adding new users, groups etc. Am a bit confused, and new to craft. So, sorry if this is painfully obvious. ...
0
votes
0answers
70 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/...
1
vote
1answer
47 views

How to display in the CP only the current user's entries?

Well the issue is simple, I have a multi-user backoffice, where they use the same section and entry type to create a new entry. The problem is when the current user (not the admin) tries to add an ...
1
vote
2answers
299 views

Can't login after installing Craft CMS 3

I just installed Craft CMS 3 and I tried logging in as my admin user but it's not working. I enter the correct login information and nothing happens. I tried the reset password option but never got ...
0
votes
0answers
16 views

Can I restrict a user to one entry and one field?

The client would like to have users who can gain access to one specific entry (e.g. user Bob gets access to the entry Chicago from the Towns section). With this access, Bob needs to be able to make ...
1
vote
1answer
197 views

User registration form with checkbox field

Hi I have user registration form with multiple custom fields. They all work fine except for the field I have as a checkbox. It returns an error of 'my-field' is invalid. Any ideas anyone? code below (...
1
vote
1answer
60 views

Manual user activation for non-admins

I am using CraftCMS 2. Beside the admins, I have 2 user groups: Employees and Editors. As admin I can activate pending Editor accounts by clicking on 'Activate account' in the corresponding user ...