For my last Meteor React app I’ve designed the most simple role based access control. The basic idea is that users can have multiple roles and every action possible is only allowed by a specified set of roles. For my Meteor React app the following scenarios were considered:
Read More
All posts tagged “user”
Authenticate Meteor accounts with the Apollo GraphQL API
One of the popular features of Meteor is its accounts package. As you know, it makes it fairly easy to add a user authentication solution to your Meteor app or add support for different oAuth services. With the possibility to integrate an Apollo GraphQL API into your Meteor app this became a bit more difficult. The Apollo stack does not support an out of the box solutions to authenticate users with Meteor accounts. Jonas Helfer, one of the Apollo core devs, proposed two ways to authenticate users with your app:
Read More
Meteor create user with a profile and custom attributes
For Meteor there are not many options left when choosing a user account package. The built-in option is the only use- and successful solution so far. The package is well documented and works like a charm. However, whenever I set up the account system in Meteor I am confronted with these two scenarios:
- How can I extend the user profile object with data from a registration form? (A user should be able to edit the profile data himself later on.)
- And how can I add other attributes to the user collection object? (A user should not be able to change a custom attribute himself later on.)
These are two fundamental obstacles almost every developer faces when setting up the account system. There are a lot of solutions out there on how to do this in Meteor properly, but a lot of them are poorly described and make it difficult the get the right idea of how the account system works. It got even more difficult due to API changes and Meteor itself that changed a lot over years. Now I would like to give a good example for this two questions.
Read More
Meteor and Mantra – Routing redirect
Recently I started using Mantra to develop my Meteor apps. As with any other framework You’ll find a lot of answers to common questions in a related forum or any other resource. However I couldn’t get a good answer on how to implement routing logic properly. The Mantra specs also don’t tell much about how to approach it. So here’s my solution.
Read More
Compare Active Directory group membership
The following scripts allows you to compare the group membership of two users.
Read More
Build a Java 3-tier application from scratch – Part 6: Client view
Welcome to the final part of my tutorial. In this last part we are going to write our view and run the client application.
The client application consists of a login and a data pane. When you’ve successfully logged in, the visibility of these panes will be switched. That’s all you have to know. In case you want to use scene builder to create the client GUI here’s a picture of what you have to build:
Read More
Create WordPress admin user with sql only
If you don’t have access to you WordPress website anymore, but still can update the MySQL database. You can easily add a new admin user with this sql script:
USE <database>; SET @username = '<username>'; SET @password = MD5('<password>'); SET @fullname = '<Firstname Lastname>'; SET @email = '<login@example.com>'; SET @url = '<http://example.com/>'; INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_status`, `display_name`) VALUES (@username, @password, @fullname, @email, @url, NOW(), '0', @fullname); SET @userid = LAST_INSERT_ID(); INSERT INTO `wp_usermeta` (`user_id`, `meta_key`, `meta_value`) VALUES (@userid, 'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}'); INSERT INTO `wp_usermeta` (`user_id`, `meta_key`, `meta_value`) VALUES (@userid, 'wp_user_level', '10');
Get the latest version of this snippet here: https://gist.github.com/25d9f243fc20532cb1b5
Thank you internet for: Peek by UserTesting
Peek is a free service offered by User Testing where you can get real people to test your websites usability.
I have to admit, first I didn’t really believe that there will be real person visiting my site and give my a feedback. But within in one hour I have been suprised.
Here’s the video done by a random guy from the internet:
Read More
Install SharePoint 2013 Three-tier Farm – Configuring User Profiles
This post of is part of my Install SharePoint 2013 Three-tier Farm project.
Filter settings
By default SharePoint won’t user profiles of disabled accounts. To change that update the connection filter on the User Profile Sync service.
Read More
Enable “Sign in as different user” option in SharePoint 2013
By default in SharePoint 2013 there is no option for “Sign in as different user”.
To enable this option you have the update the SharePoint welcome template. Read More