login

How to implement user authentication in a Play Framework application

Table of Contents1 - Resources2 - A custom user authentication action3 - Use that action in your controller methods4 - A sample form5 - Setting the user login cookie6 - Discussion

This past week I started working with the Play Framework (version 2.6), and this is a quick look at how to implement user authentication in a Play application. Specifically this blog post focuses on how to create a custom action so you can secure your Play controllers methods, where you’ll implement those methods using this new, custom action.

How to log into an iPad by throwing an Android tablet onto it

I have no idea why this works, but if I throw/slide my Google Nexus 9 tablet onto my old iPad 2, the iPad wakes up and logs in automatically. You can see it happen in this 30-second video:

I’m not touching any iPad buttons when this happens. My guess is that the iPad 2 thinks that I just removed a magnetic cover, but really, I have no idea why it does this.

Mac startup/login programs (startup items)

Mac startup/login programs FAQ: How do I set up a Mac program to automatically startup when I log in?

If you have a normal Mac application that you want to setup as a Mac startup program (also called a Mac "startup item"), the process is fairly simple, and I'll demonstrate the approach in this article. For other Mac applications, like a command line program, the approach is different, and I'll cover that in a separate article.

CakePHP Auth login - User login information

CakePHP Auth user login FAQ: Help, how do I get access to the CakePHP user object (user information) after using the CakePHP Auth component for the recommended CakePHP user login process?

A CakePHP user registration form example

CakePHP user registration FAQ: The cookbook covers the topic of CakePHP user login forms, but the CakePHP Auth module uses SHA1 for passwords, and the cookbook doesn't cover user registration (creating users, and SHA1 passwords); how do I set up a CakePHP user registration form, including all necessary CakePHP model, view, and controller classes?

Setting up a basic CakePHP registration form isn't too hard, er, well, once you know how to do it. Here's how.

Help, I can’t login to my Drupal website

Drupal update/upgrade FAQ: Help, I can’t login to my Drupal website after performing a Drupal upgrade!

(Okay, that’s not really a question. But it is a common Drupal problem that might make you panic.)

If you ever happen to upgrade a Drupal website, and then find that after the upgrade you can’t login to your Drupal site, don’t panic, I may have an answer for you.