Этот материал находится в платной подписке. Оформи премиум подписку и смотри или слушай Build a Complete Registration and Login System using PHP MVC, а также все другие курсы, прямо сейчас!
Премиум
  1. Урок 1. 00:01:42
    Introduction
  2. Урок 2. 00:02:01
    Install a PHP web server and a database server on your computer
  3. Урок 3. 00:01:46
    Install the PHP MVC framework
  4. Урок 4. 00:01:35
    Configure the web server to use the framework
  5. Урок 5. 00:02:39
    Create a new database and configure the framework to use it
  6. Урок 6. 00:02:35
    Uniquely identify users: username or email address?
  7. Урок 7. 00:04:11
    Store passwords as securely as possible in the database
  8. Урок 8. 00:03:42
    Generate secure salted password hashes
  9. Урок 9. 00:02:47
    Create a database table to store user accounts
  10. Урок 10. 00:02:20
    Create and display the signup page
  11. Урок 11. 00:03:49
    Add the form to the signup page
  12. Урок 12. 00:01:37
    Create the signup action in the controller
  13. Урок 13. 00:04:09
    Understand the danger from SQL injection attacks
  14. Урок 14. 00:04:02
    Avoid SQL injection attacks using PDO
  15. Урок 15. 00:04:36
    Add a user model with a save method
  16. Урок 16. 00:03:57
    Validate the data before saving the new user record
  17. Урок 17. 00:02:12
    Validate the email address is unique in the user table
  18. Урок 18. 00:03:31
    Display validation error messages in the signup form
  19. Урок 19. 00:02:06
    Prevent duplicate form submissions using the Post / Redirect / Get pattern
  20. Урок 20. 00:05:16
    Redirecting to another page using PHP: how, why and best practices
  21. Урок 21. 00:01:13
    Redirect to the success page after a successful signup
  22. Урок 22. 00:02:46
    Why you should validate data on the server as well as the client
  23. Урок 23. 00:03:01
    Validate the signup page in the browser using HTML5 validation
  24. Урок 24. 00:03:35
    Add a JavaScript validation library
  25. Урок 25. 00:03:12
    Validate the signup page in the browser using JavaScript
  26. Урок 26. 00:02:21
    Validate the format of the password with a custom validation method
  27. Урок 27. 00:05:05
    Validate the email address is unique using an Ajax request
  28. Урок 28. 00:01:47
    The password confirmation field: why it's a problem and how to fix it
  29. Урок 29. 00:02:42
    Remove the password confirmation field and add a show password button
  30. Урок 30. 00:03:15
    Create and display the login page
  31. Урок 31. 00:02:02
    Create the login action in the controller
  32. Урок 32. 00:05:02
    Find the user object using the email address
  33. Урок 33. 00:03:11
    Authenticate the user by verifying their password is correct
  34. Урок 34. 00:01:31
    Redisplay the email address in the login form when authentication fails
  35. Урок 35. 00:01:46
    Add a redirect method to the core controller
  36. Урок 36. 00:05:18
    Sessions in PHP: make the web browser remember you
  37. Урок 37. 00:04:11
    Use the session to remember the login and view the logged-in status
  38. Урок 38. 00:03:06
    Sessions in PHP: completely destroy a session, even without closing the browser
  39. Урок 39. 00:02:33
    Destroy the session to log the user out
  40. Урок 40. 00:04:23
    Sessions in PHP: prevent session fixation attacks
  41. Урок 41. 00:03:56
    Add a class to organise the authentication code in one place
  42. Урок 42. 00:03:03
    Restrict a page to logged-in users only
  43. Урок 43. 00:03:04
    Redirect back to the originally requested page after login
  44. Урок 44. 00:02:02
    Add a method to the core controller for requiring login
  45. Урок 45. 00:02:00
    Require login for all action methods in a controller
  46. Урок 46. 00:03:05
    Add a base controller that requires login for all action methods
  47. Урок 47. 00:03:28
    Get the current authenticated user in controllers and views
  48. Урок 48. 00:02:34
    Simplify the code: remove the isLoggedIn method
  49. Урок 49. 00:02:48
    Flash notification messages: display status messages to users
  50. Урок 50. 00:02:08
    Add a flash message when requiring login
  51. Урок 51. 00:03:05
    Display the flash messages to the user
  52. Урок 52. 00:01:50
    Add flash messages when logging in
  53. Урок 53. 00:01:57
    Add a flash message when logging out
  54. Урок 54. 00:01:50
    Add a CSS style sheet and style the flash messages
  55. Урок 55. 00:04:37
    Add flash message types and give them different styles
  56. Урок 56. 00:04:26
    How to remember the login after closing the browser
  57. Урок 57. 00:03:39
    Generate unique, random tokens and secure hashes
  58. Урок 58. 00:03:53
    Add a class to generate and create hashes of random tokens
  59. Урок 59. 00:02:15
    Create a database table to store remembered logins
  60. Урок 60. 00:03:33
    Add a remember me checkbox to the login form
  61. Урок 61. 00:03:41
    Remember the login in the database
  62. Урок 62. 00:05:06
    Cookies in PHP: the basics
  63. Урок 63. 00:02:12
    Remember the login in a cookie
  64. Урок 64. 00:04:10
    Log in automatically using the token in the cookie
  65. Урок 65. 00:02:43
    Prevent automatic login if the remember token has expired in the database
  66. Урок 66. 00:03:51
    Forget the remembered login when logging out
  67. Урок 67. 00:02:42
    Allow users to securely reset their passwords when they forget them
  68. Урок 68. 00:03:14
    Get access to an email service
  69. Урок 69. 00:03:08
    Add a class to send emails
  70. Урок 70. 00:01:28
    Create and display the forgotten password page
  71. Урок 71. 00:02:14
    Process the forgotten password form in the controller
  72. Урок 72. 00:01:31
    Add password reset fields to the user table in the database
  73. Урок 73. 00:02:05
    Save a new password reset token and expiry with the user record
  74. Урок 74. 00:02:52
    Send the password reset email to the user
  75. Урок 75. 00:03:25
    Get the email content from a view template
  76. Урок 76. 00:02:11
    Add an action to process the link and get the token from the URL
  77. Урок 77. 00:03:56
    Get the user based on the token and check the expiry
  78. Урок 78. 00:02:36
    Create and display the password reset form
  79. Урок 79. 00:01:52
    Extract repeated JavaScript code out into a separate file
  80. Урок 80. 00:02:38
    Process the password reset form in the controller
  81. Урок 81. 00:03:08
    Remove duplicated code and add an expired token view
  82. Урок 82. 00:05:40
    Validate the password reset form on the server
  83. Урок 83. 00:03:53
    Reset the user's password and clear the token and expiry
  84. Урок 84. 00:02:41
    Account activation: confirm the user's email address
  85. Урок 85. 00:01:27
    Add account activation fields to the user table in the database
  86. Урок 86. 00:01:57
    Generate a unique activation token upon signup
  87. Урок 87. 00:03:23
    Send the account activation email to the user
  88. Урок 88. 00:02:06
    Restrict login if account not activated
  89. Урок 89. 00:05:10
    Process the account activation link and activate the account
  90. Урок 90. 00:02:56
    User profile: let the user update their own details
  91. Урок 91. 00:02:18
    Get the current logged-in user and display their profile data
  92. Урок 92. 00:03:05
    Create and display the edit profile form
  93. Урок 93. 00:04:04
    Validate the email address is unique, allowing for the existing user record
  94. Урок 94. 00:03:05
    Make changing the password optional, but still validate it if supplied
  95. Урок 95. 00:05:10
    Validate and save the profile data on the server
  96. Урок 96. 00:04:32
    Clean up duplicated code in the profile controller
  97. Урок 97. 00:02:34
    Add site navigation with a link to the profile page
  98. Урок 98. 00:01:55
    Use a CSS UI framework to add styling and layout
  99. Урок 99. 00:01:45
    Include the Bootstrap framework
  100. Урок 100. 00:01:29
    Add a container element and style the general layout
  101. Урок 101. 00:03:04
    Add styles to forms and input controls
  102. Урок 102. 00:01:41
    Add styles to buttons
  103. Урок 103. 00:01:40
    Turn the navigation links into a navbar component
  104. Урок 104. 00:01:03
    Replace the flash message styles
  105. Урок 105. 00:00:49
    Add styles when showing the user's profile data
  106. Урок 106. 00:01:23
    Conclusion