Questions tagged [users]

Craft member accounts.

Filter by
Sorted by
Tagged with
2 votes
0 answers
13 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 ...
user avatar
  • 438
0 votes
0 answers
14 views

How to make categories visible only for user/usergroup in backend?

following problem/question: A section is filtered by categories in frontend. For the backend I need a filtering, when users pick a category from a field type select, which included the categories. ...
user avatar
2 votes
1 answer
26 views

Create a pending user from plugin

I'm trying to create a pending user account when an event occurs $newUser = new User([ 'firstName' => $submission->firstName->getValue(), 'lastName' => $submission->lastName->...
user avatar
  • 1,793
1 vote
1 answer
40 views

Password setup screen on mobiles doesn't work properly

I am running a multi user site on Craft 3. When a new user is trying to set up their password for the first time, the default craft password setup page is not working on mobiles. It seems like the ...
user avatar
0 votes
0 answers
35 views

Craft user error after upgrade to Craft 4

I have an issue after upgrading to Craft 4. It seemed like the upgrade wen't smoothly, however I have an issue where users are unable to view their account settings or create new users. I get an error,...
user avatar
1 vote
2 answers
35 views

How to get user info in a custom plugin task?

I've been trying to get the user id when running a task to save it on a table but cannot find a way to get it not even the user info. Using Craft::$app->getUser() or Craft::$app->user I get: [&...
user avatar
  • 11
1 vote
1 answer
48 views

Front-End user registration dynamic usernames - duplicate check

I have a front-end user registration form that generates a username automatically based on the first and last name inputs. This works as intended but on the off chance that two people have the same ...
user avatar
1 vote
1 answer
25 views

Is there a way to trigger a user account creation from a different CMS?

I'm a junior web developer working with Craft CMS. I was wondering if there was a way to trigger a controller I have for my Craft CMS from an outside CMS. We have more than one website that offers ...
user avatar
1 vote
1 answer
37 views

Is there a way to change the author of an entry on the frontend?

So, I know that you can do this on the backend. But is there a way to change the author of an entry from a frontend form? I'm making a vacation request system and I'm wanting managers to be able to ...
user avatar
2 votes
2 answers
29 views

Is there a way for a user to assign another user to a group on the frontend?

So, I'm trying to build a dashboard where the partner of the company I work for can edit users. And I want him to be able to have like a drop down to assign the user's group on the frontend. Is there ...
user avatar
2 votes
1 answer
44 views

Can I change a user field with twig without using a form?

I basically just want to set the value of a users field to a different number if something happens, so that the user field is actually updated in the CMS. Can I do that without creating a form? So ...
user avatar
1 vote
1 answer
38 views

Add user to group based on registration form field

I'm trying to add my users to a group based on the option they select in a dropdown field. I feel like I'm close but so far - at the moment, it's not adding the new user to a group and it's clearing ...
user avatar
  • 337
1 vote
1 answer
50 views

How do I get custom fields of User on graphQL?

I am wanting to fetch queries for custom fields of users, how would I go about doing that? So if I did something like this: query { users { id firstName lastName email photo { ...
user avatar
2 votes
1 answer
39 views

Admin notification when user updates user profile

I have a client that wants to be notified by email whenever any user on the site updates their profile fields. Right now, users can update their profiles through a front end form. Ideally, after any ...
user avatar
1 vote
1 answer
51 views

How to Create an Author Page?

I'm trying to understand the best or most common approach to creating unique author/user pages that list that user's blog entries. This question was helpful for how to process the results. However, I'...
user avatar
1 vote
1 answer
35 views

Backend Save user fields

I'm just trying to change a value of any field in the User Table in Craft 3. Basically, say I retrieve a User by its ID and change the name and SAVE it... $oneUser = Craft::$app->users->...
user avatar
1 vote
1 answer
162 views

how to check if a user email exists before creating a new user on a frontend form?

I have a signup form on my site and I want to check if the entered input (email) is already used in my DB before submitting the form. What's happening now is when I create a new user with a new email ...
user avatar
  • 115
2 votes
1 answer
24 views

Multi user setting in a multi language environment

I am building a multi-language site in a multi-users environment. For each user I want to assign several text fields that should be translatable for each language, similarly like in entries/categories ...
user avatar
1 vote
1 answer
32 views

Compare entry checkboxes with user groups to give access

I have a 3 levels of membership with a field on my entries matching those groups to restrict access. I know I can get a user's groups with currentUser.getGroups(), but how can I compare that with my ...
user avatar
  • 337
0 votes
0 answers
38 views

User Activation and Password reset links loads homepage instead of

I need help with User activation and Password reset emails. So, when we add a new user to Craft (production), the user gets the following activation email : "Thanks for creating an account with &...
user avatar
1 vote
1 answer
98 views

user session for Multi Site

I have a multi-site and they are under 1 root domain and the default site is food.com and bread.food.com is the additional site. How can I share the user session data of food.com to bread.food.com. My ...
user avatar
2 votes
1 answer
83 views

Is it possible to display the debug bar while NOT logged in?

I'm trying to solve some possible performance issues caused in the logic of my site which checks for whether a user is logged in or not, to display or not display certain pieces of content. Is it ...
user avatar
  • 1,369
1 vote
2 answers
149 views

Send automated emails to users that haven't logged in for X amount of time

What would be the preferred method to send an automated email to users that haven't logged in for a set amount of time? Let's say for a month. Are there any plugins that have this feature, or will it ...
user avatar
  • 37
1 vote
1 answer
141 views

How to update a User's Entries custom field only once just after save?

From a custom module, I'm listening to EVENT_AFTER_SAVE_ELEMENT events, to be sure to get the Entry ID after save: Event::on( Elements::class, Elements::EVENT_AFTER_SAVE_ELEMENT, function (...
user avatar
0 votes
1 answer
29 views

How to alter CP entry edit form

On an entry edit form I'd like to alter the options in a multiselect field to be user relative. Is there something like a form_alter hook?
user avatar
  • 387
0 votes
0 answers
13 views

Commerce 3: on user registration take adress also for shipping adress (stored in customer info tab in backend)

Not sure if i understand the user and customer relation correctly: i have a craft commerce site and want user to register. Right now if a user puts in all the information for registration, the ...
user avatar
  • 319
1 vote
1 answer
75 views

User field names?

The online documentation states: Each user has an email address and username by default, and optional fields for a name, photo, and password. Excuse the dumb question, but where do I find the what ...
user avatar
1 vote
1 answer
20 views

Change password messaging per site?

I have several sites running under one Craft install. Two of them are for our internal use, and one is public-facing. On the public-facing site, I need to provide a reset password function. When the ...
user avatar
  • 596
1 vote
3 answers
143 views

Deleting user data from the database

I'm using Craft 3.6.4.1 and I need to delete a whole tranche of users from the database (that has derived from another Craft instance). I've been deleting by hand via the CMS but note that loads of ...
user avatar
0 votes
0 answers
29 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 ...
user avatar
1 vote
1 answer
48 views

Prevent adding users with same email addresses

I am adding new users inside of the Craft controller as part of the frontend user import script. This is the code: $user = new User(); $user->pending = true; $user->username = $email; $user->...
user avatar
  • 219
1 vote
1 answer
38 views

After signup action

I'm trying to add an action after user signup so that we can post the clients external system so we can retrieve a customer number that we require. My question is does EVENT_BEFORE_VERIFY_EMAIL run as ...
user avatar
  • 33
2 votes
1 answer
149 views

Stay on the same page after logout

Is it possible to stay on the same page after logging out from the frontend, assuming that guests can still view that page? By default, when logging out we are redirected to the homepage or some ...
user avatar
  • 1,195
1 vote
1 answer
37 views

Display user photo within a User field type

I'm making a staff page with a User field type, so you select all the users you want displayed. I'm having trouble showing each user's photo though. This works: {% for user in block.staffList.all() %} ...
user avatar
  • 251
2 votes
1 answer
118 views

How to configure the system messages <link> url?

we have got a multisite environment and have imported users with different preferred languages (de and en). Therefore we made a module, cause the feedme plugin doens't set the preferred language https:...
user avatar
2 votes
2 answers
208 views

Guest user registration using Commerce 3

I have just started using Craft Commerce (only Lite version currently) and I'm currently trying to get to grips with what is possible. My question is regarding subscriptions. The site that I'm working ...
user avatar
  • 245
1 vote
1 answer
69 views

Query to find users who are in more than one user group

I'm working with a site that has a few thousand user accounts. With the exception of core accounts with CP access, each user account exists for the purpose of access to event URLs which eventually ...
user avatar
0 votes
1 answer
408 views

Adding admin user accounts

I'm lost when it comes to adding a new admin user account. In the dashboard, I go to Settings -> Users, where I'm expecting to find a form where I could input a username, email address, password, ...
user avatar
  • 149
2 votes
0 answers
72 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 ...
user avatar
1 vote
1 answer
116 views

Users not fully deleting from the database

From the admin, if I delete a user they disappear from the admin list but not from the users database table. Looking through the code I can see UsersService.php has a function deleteUser which calls ...
user avatar
  • 111
1 vote
1 answer
105 views

Not require password on user signup

I have a form to sign up for a trial (offline product) and I feel like the most logical place to store that data is Users, but requiring a password on sign up will likely put people off. How could I ...
user avatar
  • 193
3 votes
1 answer
162 views

Protecting public assets

I'd like to manage access to assets with public URLs. Is there a way to set permissions for anonymous users?
user avatar
  • 387
1 vote
1 answer
70 views

Filter users: in group AND not in other group

Please could you advise on how to filter a user query, so that users from Group A are included, but not if they are also in Group B? {% set vnp_users = craft.users .group(['groupA', 'not groupB']) ...
user avatar
1 vote
0 answers
23 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 ...
user avatar
1 vote
1 answer
127 views

Restrict entries to specific users

I would like to restrict entries to specific users on the frontend via a User Field called userSelector. It should be possible to have more than 1 user. I understand groups might work, but I feel like ...
user avatar
  • 193
0 votes
0 answers
28 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
user avatar
1 vote
1 answer
499 views

How to change the Craft 3 activation email?

In my organization many of the employees believe the user activation email sent out by Craft is spam. How do I change the email text and possibly add an image, like our company logo, to the email?
user avatar
1 vote
2 answers
132 views

Frontend Form Search Users based on Tags

Context: I'm trying to build a search form that will filter users based on Name, Skills and School. Users who have any of the search criteria should appear in my results. Name Is a fuzzy keyword ...
user avatar
  • 357
1 vote
1 answer
35 views

Customizing the destination after user activates the account

I would like to ask about activation e-mail which is sent to new user. Once the user clicks the link, it redirects to homepage. Is it possible to change the destination? I would rather like to make ...
user avatar
  • 389
1 vote
0 answers
54 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 ...
user avatar
  • 180

1
2 3 4 5
10