Skip to main content

Questions tagged [users]

Filter by
Sorted by
Tagged with
18 votes
9 answers
7k views

Craft constantly logging out from admin area

While working in the Craft admin area, on a fresh install, I get logged out every once in a while. It makes the CMS unusable. I have tried: Clearing cookies Resetting the cache in the backend ...
Jason D's user avatar
  • 1,132
18 votes
3 answers
5k views

Allow user to change or delete their photo for their profile from the front end

How can I allow a user to change or delete their photo for their profile from the front end? I currently have a form setup for the user to edit their profile but I want to load their current photo (...
Niall Thompson's user avatar
18 votes
1 answer
14k views

How can I determine if a user is logged in, and who that user is?

I'm running some checks to see if there is a user logged in, and if that user is someone specific. When accessing user.isCurrent it's returning 1 when I'm logged in, but returns null when I'm not. ...
Bill Columbia's user avatar
15 votes
4 answers
14k views

Check user is in User Group / Custom User Permissions

I'm trying to restrict access to items in a channel using some form of custom user permissions however I don't appear to be able to create or set custom read permissions for a channel using crafts ...
Darren's user avatar
  • 433
13 votes
1 answer
3k views

How to add custom user fields to the front end registration page

This question is similar to this post, but more of the next logical step. I have added custom fields to my user profiles, but would like these attributes to be part of the registration page. For ...
Joshua Ohm's user avatar
11 votes
3 answers
2k views

How to set up {siteUrl} to work with both http and https

I'm looking for a way to set up the general.php file's siteUrl to be able to use both http and https. Only the front-end login would be using the https. This is how I currently have it set up: '...
Kyle's user avatar
  • 367
10 votes
1 answer
1k views

Change the size of a users profile photo?

I have a website where I am pulling a list of staff members from the Craft users. You can add individual fields to the users element, but it seems the image for the photo is incredibly small is size ...
Jason McCallister's user avatar
10 votes
1 answer
1k views

How do I change a user's password programmatically in a plugin?

I'm new to Craft and (attempting to) create a plugin so that I can import existing users from CSV. I'm referencing this method: https://docs.craftcms.com/api/v2/craft-usersservice.html#method-...
casey's user avatar
  • 447
9 votes
1 answer
7k views

Users relatedTo multiple categories

Trying to get users in a members group related to multiple categories. {% set services = craft.categories.group('services').slug('service-1, service-2') %} {% set locations = craft.categories.group('...
Sean Delaney's user avatar
9 votes
1 answer
3k views

Use email address as username

Is there a specific or preferred way to set the username for new user registrations to be their email address? At the moment my user signup form contains both fields: <!-- Username --> <...
Niall Thompson's user avatar
9 votes
1 answer
2k views

How do I enforce stronger password requirements on my Craft site?

Craft’s only password requirements are that it is between 6 and 160 characters long. I want to require my users to enter passwords that are at least 7 characters long, with at least one number and one ...
Brandon Kelly's user avatar
9 votes
1 answer
2k views

How do I list entries from a single author?

I'm returning the username as the second segment /blog/username and then setting the username var to craft.request.segment(2). I'm looking to list a group of entries by that author (username). I've ...
Ryan Shrum's user avatar
  • 1,914
8 votes
2 answers
219 views

Is there a native function or plugin to allow admins to email all users?

I want to be able to provide the admin with a function so that they can email all registered users of the site. Is there a native function or plugin that would make this possible?
Niall Thompson's user avatar
8 votes
3 answers
1k views

Comprehensive logging of user actions with Craft Pro?

I am considering a purchase of Craft Pro in place of a new ExpressionEngine build for a client. One of the client's requirements is that there be a comprehensive set of logs like Audit Pro of what ...
epocsquadron's user avatar
8 votes
3 answers
3k views

Craft Forum/Community options

Im curious to hear more about what any of you are using to build "community"/ "forum" messaging options into your craft cms site. From what I've found it seems there would be a couple of interesting ...
Keith Mancuso's user avatar
7 votes
2 answers
3k views

User profile public page

I'd like to manage my users (both active site users, and other employees at my client's company) via the Craft user management. I've added more profile fields, etc. But i'm wondering, is there a built ...
carbonjoetunis's user avatar
6 votes
2 answers
2k views

Getting logged out of admin area when refreshing site

The problem seem to be that the session file in /craft/storage/runtime/sessions is getting removed any time I refresh the actual page, so that I have to do a new login everytime I've changed content, ...
megatrond's user avatar
  • 1,342
6 votes
1 answer
1k views

When deleting a user do the entries they created also get deleted?

We had an instance where a user deleted an admin and it seemed to delete the content that user had created. Is this currently how Craft works? If so is there a way around that without having to change ...
a-am's user avatar
  • 2,867
6 votes
2 answers
600 views

Suspended users who have never logged in

This may sound paradoxal but here it is. Membership based site. A new user starts as suspended. An admin unsuspends. The user uses the system. If a membership expires, a user gets suspended again ...
Oli's user avatar
  • 7,505
6 votes
1 answer
2k views

New user registration activation timeout?

Does the "Activate your account" link, in emails sent to new users, have an timeframe for expiration? I've had a few of my users run into a "Invalid verification code" error when clicking on the link,...
jooosh's user avatar
  • 190
6 votes
1 answer
2k views

How can I prevent "spam" user registrations?

We recently launched our first site with front end user registration and we are getting a lot (not a ton, like 5 a day) spam registrations. See here: Im trying to find a way to cut down on these ...
Keith Mancuso's user avatar
6 votes
1 answer
364 views

Fields applied to the User area are not translatable?

I have a site which allows people to register as a member from the front end. I've got a bunch of fields attached to the User so that each person can build their own extended profile page; the site is ...
Matt Wilcox's user avatar
  • 3,219
5 votes
2 answers
3k views

What are the options for taking membership subscriptions via Craft?

In addition to ‘What is the current landscape regarding e-commerce plugins for Craft?’, I’m looking for current options for setting up membership subscriptions. I have a site in development that was ...
James's user avatar
  • 1,138
5 votes
1 answer
2k views

How do I display the Image of an Author in a post?

This might be a stupid question... but I can't seem to figure it out. I'd like to show the photo of an author beside their entry. I thought the proper variable was... {{user.photoUrl}} ...until I ...
Jesse Bennett-Chamberlain's user avatar
5 votes
2 answers
907 views

Set Up A Global Dashboard For A Specific User Group

Is there a way to set the Dashboard up globally for a specific user group and lock it so that it can't be edited?
Gareth's user avatar
  • 1,605
5 votes
1 answer
1k views

How do I output a dropdown's values if I'm on a registration form not tied to an entry?

I have a registration form on my website. All of the fields here so far have been text, which is no problem. However, I've just been asked to create a dropdown box for users to select their salutation ...
darylknight's user avatar
  • 3,290
5 votes
2 answers
681 views

Limit number of sessions per user

Is there a way to limit the number of sessions per user? That is, I can be logged into one machine/browsers only once. It is essential that we limit the number of times a user can be logged in and I ...
cballenar's user avatar
  • 1,419
5 votes
2 answers
2k views

Automatically assign a user group

How can I assign a user group to a user when it's created through the front end? EDIT: So a few more details. I see there are some great answers if you want to put all users in one group, but ...
paralyzah's user avatar
5 votes
1 answer
3k views

What's the difference between 'user', 'currentUser', and 'account'?

I notice in the template examples that user, account and currentUser are all being used, but not seeing clear documentation on these. Can someone perhaps explain the difference? Example User ...
Douglas McDonald's user avatar
5 votes
1 answer
399 views

Is it safe to mass delete users from the database directly

We have a client site that has been getting a lot of spam registrations. We're turning on purgePendingUsersDuration to help deal with some of these automatically, but I was planning to go into the ...
Keith Mancuso's user avatar
5 votes
2 answers
1k views

Allow user to delete their own account from the front end

I'd like to allow a non-admin user to remove their own account from the front end of my app, without allowing them CP access. I'm concerned that if I give the user group deleteUser permissions they ...
Josh Angell's user avatar
  • 2,311
5 votes
2 answers
600 views

Change the location of the user photos

Is it possible to change the default location users upload their profile photos to? Right now they are stored in /admin/resources/userphotos/ which for me is not preferable for some reasons. I’d ...
Marcus Scheller's user avatar
5 votes
1 answer
1k views

Is it possible to add a custom field to User model from a plugin?

Within a plugin I'm working on, I'll be adding user synchronisation with a third-party database to enable SSO, so will be creating users within Craft based on an interaction from this other service. ...
Adam's user avatar
  • 147
5 votes
1 answer
1k views

Single-sign on for multiple Craft sites

Does Craft support any form of single sign-on across separate installations? I don't think there is a native way of doing this, but does anyone have any idea how I would approach this? What I need is ...
Steve Rowling's user avatar
5 votes
1 answer
425 views

Change User Group Front-End

I've got a client project which utilizes the Users section of craft pretty heavily. I am trying to figure out if it is possible in vanilla craft to move a user from one group to another say, from the '...
Panda4Man's user avatar
  • 253
5 votes
1 answer
284 views

Is there a user stats plugin available?

I am looking for a plugin or simple method that can add some stats to the User Admin. We have a membership site running for a client and it would be good to add either a count to the sidebar User ...
Dan G's user avatar
  • 355
5 votes
1 answer
145 views

Is it Possible to Assign Permissions Within a Content Structure

I'd like to be able to assign permissions to content or sections of content within a structure. For example, if I have a structure modeled around an organization and there are several departments ...
Todd McGregor's user avatar
4 votes
3 answers
5k views

How to identify the logged in user inside a plugin?

I have a public registration form and a plugin which needs to create an entry for a user when that user is activated. That part works. Because I want to force an Admin to activate the user, I am using ...
Matt Wilcox's user avatar
  • 3,219
4 votes
2 answers
3k 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 ...
shakpit's user avatar
  • 55
4 votes
1 answer
1k views

Password protected area with unique files

We're considering using Craft for a new project. One of the features requested is to have a password protected area. Each user would have access to their own files only. So we'd need to be able to ...
glider's user avatar
  • 647
4 votes
2 answers
1k views

Redirecting after login based on user group

I'd like to control where a user gets re-directed after login based on the user group. That is, userGroupA logs in and is sent to /templateA/_entry, while userGroupB logs in and is sent to /templateB/...
Nathan D Huening's user avatar
4 votes
3 answers
1k views

How can I import existing users with passwords stored in a different format than Craft's hash format?

Se need to import a large user table to a Craft installation. Unfortunately, the passwords in the imported data are SHA1 encrypted (and salted). What is the best way to enable the login of the users? ...
user3826's user avatar
4 votes
1 answer
1k views

Custom fields on users

Is it possible somehow to add custom fields to the users in Craft? I'd like the users to be able to add a Bio. I know I can add a channel but wondering if I am missing something obvious or if this ...
Tim's user avatar
  • 355
4 votes
2 answers
2k views

How to list all User Groups and Users

I'm nearly there on this one but could use some help. I want to list all User Groups, with all Users listed under each group. For bonus points, this all needs to be alphabetical (Group, then Users). ...
Ian Ebden's user avatar
  • 894
4 votes
3 answers
2k views

Getting "Session Ended" popup in admin

Every minute or so I get the "Your session has ended" popup in the admin. Entering my password just pops the message back up. If I reload the page I'm still logged in. I'm running Craft in vagrant so ...
Curtis's user avatar
  • 118
4 votes
1 answer
226 views

Users Order not Working

I'm trying to order my users with craft.users.order('lastName'), which should be no problem, since I'm pulling that straight from the documentation; however, it's not working for some reason. Is this ...
Nate's user avatar
  • 41
4 votes
1 answer
1k views

What's the simplest way of automatically activating/verifying user accounts?

I'd like to have my users automatically verified/activated so they can immediately login after registration. Normally this would be done through the automatic emailer, but I'd like to skip that. Are ...
Joshua Ohm's user avatar
4 votes
2 answers
1k views

Error when rendering a template (for HTML email) on users.saveUser

I'm writing a simple project-specific plugin that sends a notification to the site admin when a new user is registered. I have an HTML template that I'd like to use for this. In my plugin's main ...
shanecavaliere's user avatar
4 votes
1 answer
1k views

Eager Loading Users Returning "Array to String Conversion" Error

I am trying to eager load users in a specific group to reduce queries. I've tried this: {% set designers = craft.users({ group: 'designers', ...
Angela's user avatar
  • 569
4 votes
2 answers
1k views

Assign a user group to a structure entry. Restrict permission front end page to that same group

I'm working on a website for a school. Each group has a specific page that has video's for that group only. Members of that group do not need access to the CP. First I noticed that I can only assign ...
noregt's user avatar
  • 1,062

1
2 3 4 5
11