Book Image

DynamoDB Cookbook

By : Tanmay Deshpande
Book Image

DynamoDB Cookbook

By: Tanmay Deshpande

Overview of this book

Table of Contents (18 chapters)
DynamoDB Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Implementing user login services


In this recipe, we are going to see how to implement login services for our Android app.

Getting ready…

To get started with this recipe, you need to have performed the earlier recipes and should have set up the Android application development kit either on Eclipse IDE or Android Studio. For more information, take a look at the following links:

How to do it…

Let's implement user login services:

  1. To provide login services to the user, we are going to use the same user model that which we created in the previous recipe. So, refer to the previous recipe for details on the User mode.

  2. To log in, we will ask our user to enter the e-mail ID and password. So, our first task is to get a user by its e-mail ID. So, once we have the user details, we can validate the entered password with the password stored in the user table. So, let's write the method to get...