如何将初始的,非常第一个用户添加到Web应用程序用户列表(此用户将添加其他用户)? [英] How to add the initial, very first user to a web app user list (this user would then add other users)?

查看:144
本文介绍了如何将初始的,非常第一个用户添加到Web应用程序用户列表(此用户将添加其他用户)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为许多客户构建一个Web应用程序。 Tha app使客户能够管理他们的用户:创建具有用户名,密码,权限等的用户。需要有第一个管理员用户才能创建其他用户。



<问题是初始用户设置:




  • 首次安装应用时,应该如何添加第一个用户?

  • 该用户是否应预先安装在用户数据库中?

  • 为这个初始用户设置了哪个密码,以及在忘记密码的情况下收回密码的电子邮件?

  • 等等。



这样的情况如何处理?

解决方案

当数据库中没有用户时,某些webapp会在第一次运行时显示安装屏幕。您可以输入管理员登录名,密码和一些首选项,然后webapp切换到正常操作模式,您可以以新创建的管理员用户身份登录并创建其他用户。


I am building a web app that goes to many customers. Tha app enables customers to manage their users: create user with user name, password, permissions, etc. There needs to be first admin user that has a permisssion to create other users.

Problem is the initial user setup:

  • When the app is first installed, how should the first user be added?
  • Should this user be pre-installed in the user database?
  • Which password to set for this initial user and which email to recover the password in case it is forgotten?
  • Etc.

How are situations like this handled?

解决方案

Some webapps will show you install screen on their first run when there are no users in database. You can enter administrator login, password and some preferences, and after that webapp switches to normal operation mode and you can login as newly created administrator user and create other users.

这篇关于如何将初始的,非常第一个用户添加到Web应用程序用户列表(此用户将添加其他用户)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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