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
17 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
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
0answers
19 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
10 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
42 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
27 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
10 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
35 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
14 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
22 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
25 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
20 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
24 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
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
66 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
59 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
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 ...
0
votes
0answers
43 views

Front-end form for users to submit entries not working?

I've put together an entry form to allow registered users to submit content. I followed the example given in the Craft 3 Docs but it still doesn't seem to work. Was hoping someone could see what I can'...
1
vote
1answer
33 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
27 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 ...
0
votes
0answers
30 views

Error while creating or changing users

When I'm creating a new user in Craft (vs 3.0.18) or edit an existing user where I have to give my admin password, this error occurs: This action may only be performed with an elevated session. ...
0
votes
0answers
18 views

How to add custom Project field in My Account(Users)?

Actually, I'm making Client dashboard using Teamwork PM API. I want to register client through Craft CMS "My Account" and add Projects field from API in "Users" so that I can make the relationship ...
1
vote
1answer
42 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
26 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
23 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
30 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
24 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
28 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
89 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
30 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
77 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
92 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
56 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
62 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
11 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
27 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
192 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
39 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
56 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
58 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
45 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
1answer
204 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 ...
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
158 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
52 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 ...
0
votes
1answer
82 views

Serialization of 'Closure' is not allowed

I created a form on the frontend that allows users to upload their profile photos: <form method="post" accept-charset="UTF-8" enctype="multipart/form-data"> {{ csrfInput() }} <input ...
1
vote
1answer
95 views

How to restrict access to some section in front-end for admin user only?

I know this is a basic question, but i never use Craft this way. I need to show a section ( list of items ) in the frontend but only available for admin users ( that are already logged in the control ...
1
vote
1answer
20 views

Can user group permissions be used to override entry section locale settings?

I have created a localized site with 9 locales for a client in craft v2.6. They are now requesting us to create a user group for each locale so they can assign editors for each of those regions. When ...
3
votes
1answer
156 views

How to get user's photo url without transform?

Craft 3: I'm trying to get User Photo URL WITHOUT any transforms, but none of those options seems to work: (some of it prints the url with some transform) user.photo user.getPhoto() user.getPhoto('...
0
votes
0answers
28 views

Possible to allow non admin to impersonate (Log in as user)?

Is it possible allow a non-admin user to "Login as xxx.." ? I have some "super user" accounts which support our customers and I they need the ability at times to "see what they see" but don't need ...