Jump to content

fooheyy

Members
  • Posts

    5
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by fooheyy

  1. Hi,

    I'm looking for manage mangos accounts with Rails 3.

    I'm using Authlogic (https://github.com/binarylogic/authlogic)

    So, a rapidly working way, but certainly not the best,

    is adding 'user_id' column to realmd > account, creating the realmd_account model, establish associations between user and realmd_account (has_one :realmd_account, belongs_to :user).

    :001 > @user = User.find(1)
    => #<User id: 1, login: "foohey", email: "[email protected]", crypted_password: "", password_salt: "", persistence_token: "", login_count: 39, failed_login_count: 0, last_request_at: "2011-03-05 13:51:35", current_login_at: "2011-03-05 12:51:09", last_login_at: "2011-03-05 12:51:02", current_login_ip: "127.0.0.1", last_login_ip: "127.0.0.1", created_at: "2011-03-05 12:17:41", updated_at: "2011-03-05 13:51:35", realmd_account_id: 5> 
    
    :002 > @user.realmd_account
    => #<RealmdAccount id: 5, user_id: 1, username: "FOOHEY", sha_pass_hash: "", gmlevel: 2, sessionkey: "", v: "", s: "", email: nil, joindate: "2011-02-12 16:33:19", last_ip: "", failed_logins: 0, locked: 0, last_login: "2011-03-02 10:52:38", active_realm_id: 0, expansion: 1, mutetime: 0, locale: 2> 
    
    :003 > @user.realmd_account.email
    => nil 
    
    :004 > @user.realmd_account.email = "[email protected]"
    => "[email protected]" 
    
    :005 > @user.realmd_account.save
    => true 
    
    :006 > @user.realmd_account
    => #<RealmdAccount id: 5, user_id: 1, username: "FOOHEY", sha_pass_hash: "", gmlevel: 2, sessionkey: "", v: "", s: "", email: "[email protected]", joindate: "2011-02-12 16:33:19", last_ip: "", failed_logins: 0, locked: 0, last_login: "2011-03-02 10:52:38", active_realm_id: 0, expansion: 1, mutetime: 0, locale: 2>
    

    do you think this is a secure solution ?

  2. This Last day , vladimir add a new usefull feature for script on non instanceable map, its the way to make outdoor pvp whithout hack, you need make script like script boss as in ScriptDev2

    Good news ! but

    read how this feature work in database.

    in which db/table ? There is an example or a commit n° ?

  3. Hi,

    I'm looking for running outdoorpvp in mangos-one and found nothing in the forum/google search.

    All results is about old mangos 0.12 branch and the latest patch for the r10049+

    so backport is possible or i have missed anything... ?

    I can do it but the hard part for me is [del]a Doxygen bug, with no doc i cant rtfm (yet)[/del] i have small skill in mangos/c++

    Any help would be appreciated :)

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use