Javascript登录,基础知识 [英] Javascript Sign-on, Basic knowledge

查看:65
本文介绍了Javascript登录,基础知识的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将在业余时间建立一个小型网站,目前仅基于HTML,Javascript,PHP(尽管我的PHP技能很基本)和一个简单的MySQL数据库.现在,我想通过允许用户登录自己的帐户来扩展该项目,以便获得高分列表(我的站点上有一些小型的实验性Javascript游戏)和一些真正的基本社区功能.

I'm building a small website in my spare time, at the moment solely based on HTML, Javascript, PHP (though my PHP skills are rudimentary) and a simple MySQL db. Now I would like to extend this project by allowing users to login to their own account, in order to have highscore lists (I have some small laborative Javascript games on my site) and some really basic community features.

我对处理登录过程,处理/加密登录凭据和相关内容的了解几乎为零.因此,我只需要基于上述技术的一些指导即可.为了学习这些东西,我应该从哪里/如何开始?

My knowledge of dealing with the sign-on process, handling/encrypting login credentials and related stuff are close to none. So I would just need some piece of guidance, based on mentioned techniques. Where/how should I start, in order the learn these things?

  • 是否有用于处理登录功能的JS框架?

  • Are there any JS frameworks out there, for handling login functionality?

有人知道这个主题有什么好的教程或其他读物吗?我尝试扫描Interweb,但没有成功.

Does anyone know of any good tutorials or other readings on this topic? I've tried to scan the Interwebs, but with no prevail.

我应该/必须考虑什么?

What should/must I consider?

以此类推.

推荐答案

最好使用PHP而不是JS处理登录,因为使用PHP可以使用数据库保存用户名和密码等.使用JS时,您的用户需要进行硬编码该脚本非常不安全,在检查源代码时任何人都可以看到.

Logins are best handled with PHP rather than JS because with PHP you can use your database to save usernames and password etc. With JS your users need to be hardcoded in the script which is very very insecure and can be seen by anyone when checking the source code.

尝试使用本教程可以更好地理解制作简单的PHP登录系统: http://www.wikihow.com/Create-a-Secure-Login-Script-in-PHP-and-MySQL .

Try this tutorial to get a better understanding of making a simple PHP login system:http://www.wikihow.com/Create-a-Secure-Login-Script-in-PHP-and-MySQL.

学习完本教程后,您肯定可以制作一个登录系统.

When you're done with the tutorial you'll be definitely capable of making a login system.

祝您好运,希望能对您有所帮助!

I wish you the best of luck and hope it'll help you out!

这篇关于Javascript登录,基础知识的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆