Questions tagged [users]

Craft member accounts.

Filter by
Sorted by
Tagged with
1
vote
1answer
37 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'...
1
vote
1answer
19 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->...
1
vote
1answer
33 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 ...
2
votes
1answer
20 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 ...
1
vote
1answer
25 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 ...
0
votes
0answers
28 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 &...
1
vote
1answer
34 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 ...
2
votes
1answer
60 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 ...
1
vote
2answers
111 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 ...
1
vote
1answer
47 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 (...
0
votes
1answer
22 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?
0
votes
0answers
11 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 ...
0
votes
0answers
19 views

action settings when signing an unverified account

I have a website that have membership where everybody can register and verify via email to become a member. but some members are still signing in even though they are not verified and the page is just ...
0
votes
0answers
47 views

How to validate email address entered during checkout on Craft Commerce?

The craft commerce templates have too many checkout steps for us in practice. So I have combined them. I have moved the email field into the Address page. But I can submit this form without ever ...
1
vote
1answer
56 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 ...
1
vote
1answer
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 ...
0
votes
0answers
26 views

JS POST setting new password with save-user re-submission not working with returned CSRF token

I have an AJAX form that sets a new password (using users/save-user) for the current logged in user (not an admin). It works for the first time but when I re-submit with the new token, a 400 Bad ...
1
vote
3answers
96 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 ...
0
votes
0answers
27 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 ...
0
votes
0answers
28 views

Hide users photo (avatar) from admin panel grid

Is it possible to remove the field for users' photo from the grid of the tab Users? It also appears on the user's profile page. Examples Grid: User's profile page:
1
vote
1answer
45 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->...
1
vote
1answer
35 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 ...
1
vote
1answer
93 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 ...
1
vote
1answer
29 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() %} ...
2
votes
1answer
94 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:...
1
vote
2answers
173 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
39 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
1answer
300 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, ...
2
votes
0answers
63 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
103 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
67 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 ...
3
votes
1answer
152 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
61 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
21 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
90 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
25 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
1
vote
1answer
405 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
104 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
30 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
50 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
168 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
311 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
54 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
27 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, ...
2
votes
2answers
68 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
27 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
290 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
423 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
57 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
158 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
2 3 4 5
10