Questions tagged [users]

Craft member accounts.

35 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
434 views

User Event before Login - check if user has password and logged in before

Is there a User Event before the authentication is fired? I want to show a message if the user doesn't have a password yet and if it's his first login / check if he never logged in before - All in ...
Christopher Dosin's user avatar
3 votes
0 answers
172 views

Add billing address to user on registration

I am working on a craftcms + commerce project and I need to add a billing address to new user during its registration process. The idea is to have a billing address added to any newly registered user ...
juanlopez4691's user avatar
3 votes
1 answer
471 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....
wietse's user avatar
  • 61
3 votes
0 answers
116 views

Dukt Social Plugin Not Creating User

I'm currently Authenticating users via OAuth and Social Login by Dukt. I have Facebook app all set up and running as well as Twitter. The user gets redirected, asked to Authorise but when it returns ...
JMKelley's user avatar
  • 1,384
3 votes
0 answers
136 views

Assigning category permissions to users

Is there a way to assign category permissions to users so that they can only view/edit those categories? I am currently looking at the following getEditableSections(), however, it's displaying all ...
Jose's user avatar
  • 103
3 votes
0 answers
413 views

How can I create a dropdown field programmatically with a plugin?

I'm trying to create a Dropdown field and add it to the User field layout. I've successfully created an empty dropdown field (no options) and added it to the User field layout. Here is my current ...
Greg's user avatar
  • 76
2 votes
0 answers
141 views

Commerce 3 - Register user and save payment source after order complete for guest checkout

We register and send account activation emails to guest customers after checkout using registerUserOnOrderComplete. We also want the guest customer to be able to save their payment card during ...
iamkeir's user avatar
  • 468
2 votes
0 answers
545 views

How to authenticate as a Craft user with a frontend tool like Next.js, Nuxt.js, or create-react-app?

We're looking to use Craft CMS as an application platform (handling content storage, user authentication, etc) for an upcoming project while leveraging something like Next.js on the front-end. Here's ...
Aaron Bushnell's user avatar
2 votes
0 answers
294 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 ...
Shanan Galligan's user avatar
2 votes
0 answers
344 views

Setting a date range on entry parameters

I'm working on a site that uses a date slider to select members of the site by birthdate. I want to show the users by gender and between two "ages". For example: Male, between 40 and 50 years old. The ...
Jan's user avatar
  • 363
2 votes
0 answers
38 views

Setting up Users to be able to only add/edit users they have set up.

I don't think this is currently possible. But maybe someone has done this already as a plugin or would I need to build one? Situation is I need to set up First level Users who would be able to set up ...
Lettie's user avatar
  • 2,033
1 vote
0 answers
26 views

Freeform user account creation form: handling prior user account exists

This is more or less a duplicate of a support ticket raised with Solspace. I’ve no doubt they will provide an answer but if anyone else has one feel free to pitch in. I'm using Freeform forms to ...
Jonathan Schofield's user avatar
1 vote
0 answers
66 views

Assign user to group available even though not allowed? (Craft v3)

Working my way through the CMS to learn in more detail I'm currently at the users / permissions parts of the CMS. Here I just bumped into the following thing I don't understand: I have a Users Group ...
Friksel's user avatar
  • 180
1 vote
0 answers
59 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 (...
Martin's user avatar
  • 1,203
1 vote
0 answers
256 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 ...
Kirubel's user avatar
  • 111
1 vote
0 answers
67 views

User not showing in the user list in the CP but has profile after social login?

Something strange going on with the user listings in the CP. Using craft v2.6.2794 and social logins v 1.2.4. I am using the social logins plugin for craft 2 and just updated it to the latest version....
Lettie's user avatar
  • 2,033
1 vote
0 answers
136 views

Set password for user when create from CP

I would assign the password and send it to the user in an email when I create that user from Backend Control Panel. I have the following code, but I got False return on craft()->users->saveUser(...
Angela Chan's user avatar
1 vote
0 answers
366 views

Activation link missing from activation email

A client is reporting that users are attempting sign up but receiving activation emails with no activation link present, simply a blank space where the {{link}} tag is placed. We are unable to re-...
pumkincreative's user avatar
1 vote
0 answers
215 views

Plugin event listener not firing

In my plugin I have an init() method: public function init () { parent::init(); require CRAFT_PLUGINS_PATH.'/myplugin/vendor/autoload.php'; $this->callTemplateHooks(); craft()-&...
Russ Back's user avatar
  • 1,503
1 vote
0 answers
459 views

Advanced filtered search: Matrix fields and arrays

Having scoured the forums for similar questions of which there are a few, I'm still struggling to figure out my specific usecase. I have 4 filters and a search box (which searches a custom tag field) ...
Rob's user avatar
  • 865
1 vote
0 answers
335 views

Best way to save user data?

I have a user model that contains several Matrix fields, but for the sake of this question I'll just discuss one of those fields. The field we'll discuss is a phoneMatrix. The phoneMatrix data can ...
Matt V's user avatar
  • 491
0 votes
0 answers
30 views

Is there a way to expose User edit history in Control Panel (similar to Entries)?

"Users" version should work like "Entries" versioning work
arshit kalkani's user avatar
0 votes
0 answers
39 views

How to export a list of customers per domain?

I got a Craft (-v 3.7.67) Commerce (-v 3.4.20) setup with 4 sites in two domains. I need to export a list of customers (or users, in my case users are 99% customers) per domain (so users that have ...
Antoine's user avatar
  • 157
0 votes
0 answers
22 views

Query user by code and id parameters found in set password path OR custom reset password path

Is there any way to query users using the parameters of set password URLs? I need to distinguish between the very first activation (welcome) email and reset password email because their corresponding ...
biko's user avatar
  • 670
0 votes
1 answer
64 views

Multi-Site Craft 3 - How to set defaultTokenDuration to shorter duration for just 1 of the sites?

I currently have a multi-site Craft 3 install with this in the general.php config file (amongst other settings) return [ '*' => [ 'defaultTokenDuration' => 259200, //72 hours ] ] ...
Chad Crowell's user avatar
0 votes
0 answers
44 views

Query multiple users and inner join to assets field

How to query multiple users and join to assets field? I want to query users with IDs [1,3,4] and inner join it to assets field with volumeId 5 and titles [1,3,4]. Tried this but this is probably wrong ...
tenshi's user avatar
  • 101
0 votes
0 answers
38 views

Updating user email does not update username when useEmailAsUsername is set

When the config setting useEmailAsUsername is set, I would expect updating a users' email address to also update the username field when saving the element. However, this does not occur unless you ...
William Isted's user avatar
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
Mahantesh Teli's user avatar
0 votes
0 answers
72 views

Do not send email activation on public registration while keeping the requireEmailVerification setting on

Is there a way to not send Email Activation on public registrations while keeping the requireEmailVerification setting on. Because, I have two type of users. The one is the off street registration (...
Ronnel Bote's user avatar
0 votes
0 answers
226 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 ...
Ian Ebden's user avatar
  • 894
0 votes
0 answers
129 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 ...
JMKelley's user avatar
  • 1,384
0 votes
0 answers
217 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/...
Mike's user avatar
  • 699
0 votes
0 answers
56 views

Manually Sorting Sub-Group of Users?

I just built a membership site and created a Member Directory template which includes all users and then a Board Members Directory template which only lists users who have a "Board Member Title" ...
Jacob Graf's user avatar
0 votes
0 answers
85 views

Displaying Pending users within CP users field (in plugin template)

I'm displaying a Users field within a template within a CP plugin, but when editing the entry, only Users that are active are being shown. Here is my field: {{ forms.elementSelect({ id: '...
Clive Portman's user avatar
0 votes
0 answers
113 views

Problem pulling email address from admin user in plugin

Is there some difference between admin users and other users? In my plugin, I have code that grabs the email address off of a selected user and then sends an email to that user. It works fine is the ...
idahotallpaul's user avatar