@julian said:
You'll want to investigate how the request is made, and mimic it with the new fields
Yes.
@julian said:
You'll want to investigate how the request is made, and mimic it with the new fields
Yes.
https://github.com/NodeBB/NodeBB/blob/master/src/routes/authentication.js#L65
router.post('/register', Auth.middleware.applyCSRF, Auth.middleware.applyBlacklist, controllers.authentication.register);
router.post('/login', Auth.middleware.applyCSRF, Auth.middleware.applyBlacklist, controllers.authentication.login);
router.post('/logout', Auth.middleware.applyCSRF, controllers.authentication.logout);
How specify a one url for controllers.authentication.register
and controllers.authentication.login
?
https://github.com/NodeBB/nodebb-theme-persona/blob/master/templates/register.tpl#L27
<input class="form-control" type="text" placeholder="[[register:username_placeholder]]" name="username"
id="username" autocorrect="off" autocapitalize="off" autocomplete="off" />
https://github.com/NodeBB/nodebb-theme-persona/blob/master/templates/register.tpl#L39
<input class="form-control" type="password" placeholder="[[register:password_placeholder]]" name="password"
id="password" />
...same attributes at login
https://github.com/NodeBB/nodebb-theme-persona/blob/master/templates/login.tpl#L17
<input class="form-control" type="text" placeholder="{allowLoginWith}" name="username" id="username"
autocorrect="off" autocapitalize="off" />
https://github.com/NodeBB/nodebb-theme-persona/blob/master/templates/login.tpl#L23
<input class="form-control" type="password" placeholder="[[user:password]]" name="password"
id="password" />
I tried to rename the registration attributes on name="newusername"
and name="newpassword"
so that they do not conflict with each other, but registration has stopped working.
If this is not done, then the registration will be available through the authorization form.
@yariplus Yes, it would be great if you could give a hint how to fix it.
I set the home page of a category. When you go to a homepage site address bar displayed in the URL for category. How do I get the address of this category is displayed as the (site) without /category/23/support.
@julian Hardly. The fact is that I want to do the authorization in modal window.
How do I put the authentication fields on the home page?
Gives an error message -
Error: / invalid csrf token
and redirects the page - Forbidden
How to allow access to redis with two ip?
bind (my ip)
bind 127.0.0.1
But I still can not access from their computer.
This is necessary, because I use Redis Desktop Manager.
@AOKP Strange. It seems to me that it appears at all users.
I updated the page on a computer until the appearance of the page and at has gone site with the other computer - page 503 was there.
If you frequently refresh pages now are redirected to this page public/503.html
But the page is displayed not only the client, which reloads the site, and all users?
If this is so, but any malicious user can interfere with the site, just updating it (F-5).
Am I wrong?
@baris said:
This forum started out on redis, then we migrated to mongo. Although it could have still worked on redis, it was using about 150mb of ram when we did the migration.
If the amount of memory consumption redis does not cause problems then why have you decided to migrated to mongo?
Why plugins from the public/vendor does not move in node_modules?
It seems to me that all of these plugins support npm.
So what is the reason that they are in a vendor?
Unfortunately, I was unable to find a solution problem...
But I found the problem for you!
- Category teaser for parent still displayed if in the previous categories are no posts:
- When refresh the page is duplicated name of the topic.
- Bug timeago.
If instead of seconds: "less than a minute"
set seconds: "%d seconds"
then post the time is 10 seconds, and will slowly drop to zero.
Which version should I use?
@julian I mean from package.json
@julian Now can remove gravatar from package?
Someone is already using it?
https://letsencrypt.org/
I received a email 'Let's Encrypt Closed Beta Invite'
But I do not understand how to install it.
In one of the updates you have disabled the show teaser parent.
Is there a quick way to make a teaser parents show up?
@pitaj, thanks.
I do not know what was the problem, but psychobunny brought back the old version templates.js
https://github.com/NodeBB/NodeBB/commit/50af77f42dec9a820381e1110bc3e8b4c51e2cfd