Форум Donate Engine

Поддержка CMS Donate Engine

Вы не вошли.

#1 2015-10-12 01:21:41

HOST
Пользователь
Регистрация: 2015-08-15
Кол-во сообщений: 116

may i ask for a small favor

hello smile
maybe off topic for the forum..
but i hope you will be able to help me with
i have the shop+forum user registration and login in 1 database now i found a
pocketmine plugin and i want it to make it work with the same user database
this is what i get at the settings.
all fat text is what i dont know what to put exept i think table_prefix could be the database user login table

#Login/Register timeout
timeout: 60
#Minimum password length
minPasswordLength: 6
#Maximum password length
maxPasswordLength: 16
#Password hash [b](your password hash)[/b]
passwordHash: [b]"fill this"[/b]
#ServerAuth language
language: "EN_en"
#ServerAuth message prefix
prefix: "&a[Generation&bCraft] "
#Show join message (defined on join-message in the current language file)
show-join-message: true
#Use MySQL (set this to false if you want to save data in local files)
use-mysql: false
#MySQL settings
mysql:
  #MySQL host
  host: "host"
  #MySQL port (default 3306)
  port: 3306
  #MySQL username
  username: "username"
  #MySQL password (you can leave it blank if your database doesn't need password)
  password: ""
  #MySQL ServerAuth database
[b]  database: "serverauth"
  #ServerAuth table prefix
  table_prefix: "srvauth_"

[/b]

Вне форума

#2 2015-10-12 01:29:59

Online
Administrator
Регистрация: 2009-11-19
Кол-во сообщений: 2,099

Re: may i ask for a small favor

A password hash is supported by pocketmine plugin?

Вне форума

#3 2015-10-12 02:24:27

HOST
Пользователь
Регистрация: 2015-08-15
Кол-во сообщений: 116

Re: may i ask for a small favor

Yep it does

Вне форума

#4 2015-10-12 10:43:54

Online
Administrator
Регистрация: 2009-11-19
Кол-во сообщений: 2,099

Re: may i ask for a small favor

use-mysql: true

Вне форума

#5 2015-10-12 11:15:07

HOST
Пользователь
Регистрация: 2015-08-15
Кол-во сообщений: 116

Re: may i ask for a small favor

that i have on but its asking for

#Password hash (your password hash)
passwordHash: "fill this" (i think the salt)

and i still dont know the hash for woltlab O_O

Вне форума

#6 2015-10-12 15:46:49

Online
Administrator
Регистрация: 2009-11-19
Кол-во сообщений: 2,099

Re: may i ask for a small favor

<!-- l --><a class="postlink-local" href="http://forums.vpn.by/viewtopic.vpn?f=259&t=3354#p17003">viewtopic.vpn?f=259&t=3354#p17003</a><!-- l -->

Вне форума

#7 2015-10-12 17:58:25

HOST
Пользователь
Регистрация: 2015-08-15
Кол-во сообщений: 116

Re: may i ask for a small favor

u tell me crypt(crypt($password, $salt), $salt);

but the settings in the plugin give me this

#Password hash algorithm
passwordHash: "sha128"

i cannot just type

#Password hash algorithm
passwordHash: "crypt(crypt($password, $salt), $salt)"

can i? i know hardly anything about this password hashing stuff i need to learn it..

Добавлено спустя 9 минут 57 секунд:
or i need to take the whole php apart? and change the settings within the php structure?

Добавлено спустя 22 минуты 3 секунды:
i think the whole php for that ...
i can edit the php when i extract the phar file

Auth.png

Вне форума

#8 2015-10-12 21:25:18

Online
Administrator
Регистрация: 2009-11-19
Кол-во сообщений: 2,099

Re: may i ask for a small favor

Your plugin uses a hash function to authenticate users.
http://php.net/manual/en/function.hash.php

Вне форума

#9 2015-10-12 22:50:03

HOST
Пользователь
Регистрация: 2015-08-15
Кол-во сообщений: 116

Re: may i ask for a small favor

yeah smile but i want it to use the woltlab hash function smile

Вне форума

Низ форума