is it that the database records the current request ip address and then saves a field, and then checks each request to see if it exists, and if so, it prompts that it cannot be registered
?is it that the database records the current request ip address and then saves a field, and then checks each request to see if it exists, and if so, it prompts that it cannot be registered
?if you really need this feature, deposit it as you said in a registered ip
but I do not recommend such a restriction. A company or family is an ip, on the outside, but many people are using it internally. If everyone has to register an account, only one person can register, and no one else can register. Only by shutting down the router, restarting, and waiting for ip to change, can you register. In this way, the user experience is very bad. You can deposit the registration ip,. However, do not use ip to restrict user registration. You can think of other ways to solve the problem of users signing up for an account many times. For example, after a user registers an account, a logo is generated and stored in cookie,. When you decide whether you have this cookie, or not, you will be reminded that you have already registered your account. If you do not have this value, you can register. (this can only relatively solve some random registration and multi-registration behavior, for example, users can register again if they know the browser cache, and another browser can also register, so this kind of verification is only relative. A perfect way is to register with a mobile phone number (you need to accept the mobile phone verification code for registration, depending on how many mobile phone numbers the user has])
this is only my personal opinion. You can modify and use it according to your actual situation
.paste the original data document first: : : what I want to ask is why the day1 update is successful, but day2.time1 can not update the callback of, save (), and how can it be updated successfully without err,? ...
I have read the document for a long time, and I have a general understanding of the concept grammar and so on, but when I really write it, I still have a lot of problems and always get stuck. such as the following this.ctx.model.Role.remove({ _id: { ...
db.inventory.find( { $and: [ { price: { $ne: 1.99 } }, { price: {$exists: true } } ] } ) this query selects all documents in the collection inventory, provided that price is not equal to 1.99 and the price field exists. My problem is that I now need to...
configure ssl for MongoDB: net: port: 27017 bindIp: 127.0.0.1 ssl: mode: requireSSL PEMKeyFile: etc ssl mongodb.pem CAFile: etc ssl ca.pem restart: service mongod restart then: mongo-- ssl-- host www.ericchoo.cn-- sslPEMKe...
the invitee opens the web page by connecting: to generate a unique query string. How does the interface get this code value when the user registers and how does it match the inviter? ...
problem description < H2 > how does mongoose jointly check and complete the data and then classify and aggregate according to the fields of the joint search? < H2 > I now have two tables: a product table Product , a product category table Category...
problem description there is a shopping cart cartList field under the user table. The field type is as follows: cartList: [ { shopId: { type: Schema.ObjectId }, shopName: String, goodsList: [ ...
mongoose multi-table query, no data found schema var productSchema = new Schema({ id: Number, specval:{type: Schema.Types.ObjectId,ref: product_specval } },{collection: product }) var productSpecValSchema = new Schema({ _id: Schema...
question: is it not recommended to use multi-table queries for mongodb non-relational databases? ...
problem description official documentation shardKey configuration instructions: configure the code according to the official document as follows: (the code has been deleted) new Schema( { eId: { type: String, default: null }, eAr...