简体   繁体   English

我可以从Wordpress数据库中获取React应用程序的用户密码吗?

[英]Can I get user password from Wordpress database for React application?

Im wondering if this is a good idea or even possible as I cant find an example... 我想知道这是一个好主意还是可能,因为我找不到一个示例...

Im attempting to create a React application(using Postgres) inside Wordpress(using MySql) because Wordpress has so much stuff built in for nice theming, posts, and especially user management accounts. 我试图在Wordpress(使用MySql)中创建一个React应用程序(使用Postgres),因为Wordpress内置了很多东西,用于漂亮的主题,帖子,尤其是用户管理帐户。 However, for each user can I get the Wordpress password and save it in another database the React application is using so as to connect the two? 但是,对于每个用户,我可以获取Wordpress密码并将其保存在React应用程序正在使用的另一个数据库中以便将两者连接吗?

Follow-up: I can probably use the REST API but that password is likely salted right? 后续:我可能可以使用REST API,但是该密码可能会被添加,对吗? Wondering what problems I'll run into before undertaking this endeavor... 想知道在进行这项工作之前我会遇到什么问题...

You don't need to copy passwords into second (any) database (or many microservices). 您无需将密码复制到第二(任何)数据库(或许多微服务)中。

It depends what you need, there are many scenarios. 这取决于您的需求,有很多方案。

You can use WP authorization to access second DB. 您可以使用WP授权来访问第二个DB。 Simplest ... you can extend WP REST API with functions operating on Postgres. 最简单的...您可以使用在Postgres上运行的功能来扩展WP REST API。 React/client won't see any difference - you can change backend 'behind scene' w/o any client change - as long as your API will be the same. 只要您的API相同,React / client就不会有任何区别-您可以在后台进行后端更改,而无需任何客户端更改。

If your app will be bigger (and independent) you can use other methods like tokens, 3rd party authorization. 如果您的应用程序将更大(并且独立),则可以使用其他方法,例如令牌,第三方授权。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我可以从Facebook应用程序获取用户的手机号码吗? - Can I get user's Mobile Number from Facebook application? 我如何通过React从数据库中获取正确的数据 - How can I get the right data from database with react 如何通过从网站前端发出 ajax 请求来获取 wordpress 中的当前用户 ID(内置在同一域上的反应) - How can I get the current user id in wordpress by making an ajax request from from the website's front end (built in react on the same domain) 我可以从.NET Web应用程序将数据(用户名和密码)发布到另一个网站以进行登录吗? - Can i post data(username and password) to another website from my .NET web application to get login? 如何使用if语句为密码生成器从用户的点击功能中获取价值? - How can I get value from user for click function using if statement for a password generator? 如何向用户隐藏 javascript(本机反应)应用程序中的 S3 密钥? - How can I hide S3 keys in a javascript (react native) application from the user? 如何根据数据库用户权限在本机反应中从抽屉导航中隐藏菜单? - How can I hide menu from drawer navigation in react native base on database user permission? 如何使用数据库、用户名、密码从数据库网络获取 api - How to get api from database network using database ,username ,password in react native AWS - 在现有 React web 应用程序上使用用户名和密码从现有 Cognito 用户池获取用户令牌 - AWS - Get user token from an existing Cognito User Pool with username and password on an existing React web app 如何在没有内存字符串的情况下将用户密码从HTML表单获取到服务器端SecureString中 - How can I get a user's password from an HTML form into a server side SecureString without having a string in memory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM