Questions tagged [users]

Craft member accounts.

Filter by
Sorted by
Tagged with
1
vote
2answers
42 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 ...
1
vote
1answer
21 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 ...
0
votes
0answers
16 views

How to Attach a User or Users to a Company

Ok, we have users and we have companies and we have different company locations. How to attach them? Or what's the best practice in attaching a user to a structure (company/location)? Or is there ...
0
votes
1answer
36 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, ...
0
votes
0answers
22 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 ...
1
vote
1answer
36 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 ...
1
vote
1answer
23 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 ...
2
votes
1answer
95 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?
1
vote
1answer
21 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']) ...
1
vote
0answers
14 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 ...
1
vote
1answer
27 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 ...
0
votes
0answers
17 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
0
votes
0answers
22 views

Is it possible to get a users most popular categories based on Craft products?

So i wanna show the user the product categories that is most popular for that spesific user. Is that possible?
1
vote
1answer
39 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?
1
vote
2answers
39 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 ...
1
vote
1answer
13 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 ...
1
vote
0answers
38 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 ...
1
vote
1answer
33 views

How can retrieve users custom fields only?

I have created fields for users and also entry type. I want to get only users fields. I have retrieved custom fields but that returns all the fields. $users = \craft\elements\User::find()->id(...
1
vote
1answer
117 views

Change base URL for email activation link?

I am using Craft as a headless CMS and have set base Url/siteUrl to the url of my React/Gatsby site. I needed to do this as my navigation plugin, Navie, appends it by default. But now when users ...
1
vote
2answers
46 views

List authors on front end by total number of entries

I need to output a list of channel authors. There are about 40 authors but I want the 8 authors with the most entries. Not sure how to achieve this. What I have so far: {# get all the itbuzz ...
1
vote
1answer
23 views

Identifying users and site permissions when logged in

If I'm logged in as a user in user Group A, how can I tell which site I am currently viewing? I want to be able to create a multilingual site switcher. But my setup is complex. I have Company A, ...
1
vote
2answers
54 views

Add user to entry user field [RSVP to Event]

I'm trying to add an RSVP button for users to register their attendance at my events. Once they click the button, I would like them to be added to a field called eventAttendees on the event entry. My ...
1
vote
2answers
26 views

How to reference a user related to entry input in if statement

I am having trouble referencing a user in an if statement: {% set otherEntry = craft.entries().section('other').userFieldInOtherEntry("{externalVariable}").one() %} {% if currentUser is relatedTo(...
2
votes
1answer
121 views

How can I retrieve Users of a specific User Group with GraphQL?

I want all the users but filtered by User Group: query getAllUsers { users { id, username } } I cannot see any query parameter on the Schema
2
votes
0answers
200 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 ...
0
votes
0answers
36 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 (...
1
vote
1answer
43 views

Can I manage/change the default flash message text?

I am looking to customise the default flash message text for certain behaviours but cannot seem to find any reference to them in the code or control panel - does this exist anywhere? And could it be ...
1
vote
1answer
37 views

How to extract a list of “copy password reset urls” for all users?

We are migrating users from a e-commerce site to a new craft commerce 2.x site. Apparently it's a little too confusing for our customers to use the "forgot password" link to obtain a new password. ...
1
vote
1answer
33 views

Simple user query with orderBy not working

Craft 3.3.13 This query does not order users correctly. {% set users = craft.users.groupId(3).orderBy('lastName asc') %} Bug?
0
votes
0answers
12 views

Clear Cache on user profile update

Using a module, would it be possible to clear the cache of a particular user when that user updates their profile? A use case for this is we have a directory of users (authors) but if they update ...
1
vote
0answers
80 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 ...
1
vote
1answer
39 views

How to eager load user Images (photoUrl)?

I've been trying to eager load user Photos, but it does not seem to work. Here's my stripped down code: {% set entries = craft.users({ group: 'coWorkers', orderBy: 'lastName', with: [ ...
1
vote
1answer
26 views

Is it possible to populate a user field in the CP using custom logic upon registration?

Whenever a user is registered in the control panel, we'd like to have a special field (something like a special member id) that is populated either by manual entry or, if the field is left empty, run ...
2
votes
1answer
16 views

Permission for “Send an activation email now?” Option

So it looks like site admins have the ability to choose whether or not to send a new user an Activation Email through the "Send an activation email now?" checkbox option on the Register a new user ...
1
vote
1answer
28 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
56 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
98 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
103 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 ...
1
vote
1answer
167 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
81 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
112 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
262 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
242 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
56 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
784 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
35 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
208 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
62 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
28 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. ...
1
vote
2answers
124 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
2 3 4 5
10