-
Notifications
You must be signed in to change notification settings - Fork 46
Can't login #1
Comments
To debug this, we need some more information. Please paste your configuration ( |
Thank's for answer. My * .yml was copied from your examples and updated as follow: cas.yml:
production:
frontend:
sso_name: 'CASino'
footer_text: 'Powered by <a href="http://rbcas.com/">CASino</a>'
authenticators:
########################################
# LDAP
########################################
# my_company_ldap:
# authenticator: 'LDAP'
# options:
# host: 'localhost'
# port: 636
# base: 'ou=people,dc=example,dc=com'
# username_attribute: 'uid'
# encryption: 'simple_tls'
# extra_attributes:
# email: 'mail'
# fullname: 'displayname'
########################################
# SQL (ActiveRecord authenticator)
########################################
my_funny_sql_database:
authenticator: "ActiveRecord"
options:
connection:
adapter: "mysql2"
host: "localhost"
username: "root"
password: "giorgio"
database: "casinousers"
table: "users"
username_column: "username"
password_column: "password"
extra_attributes:
email: "email"
fullname: "fullname"
the database.yml:
production:
adapter: mysql2
encoding: utf8
reconnect: false
database: CASinoApp
pool: 5
username: root
password: giorgio
socket: /var/run/mysqld/mysqld.sock and my users table is:
PS i put a minus - before # to avoid automatic bold chars |
I allowed myself to edit your comment. You can use three ` to create code blocks. This looks good so far. How does such a table row out of bundle exec ruby -rbcrypt -e 'puts BCrypt::Password.create("pw123")' |
Thank' for help! |
That's good to hear! As cleartext passwords are really insecure, we just don't support them. I don't know any function to create hashed and salted passwords with MySQL only. Postgresql has support for this: http://www.postgresql.org/docs/8.3/static/pgcrypto.html . The user management is not part of CASinoApp, so you maybe want to generate the hash with the command above and use it in you sql-statement. |
hi, development: test: production: and my database.yml is: development: casino_users table: +----+---------------+----------+-------------------------------------------------------------+---------------------+---------------------+ |
Hi, I'm looking for a CAS solution and i tryed this app.
i can run this with
bundle exec rails s
so i try on browser standard port 3000.
I've inserted some simple users in the users table
and when i write username and password on the form fields
i can't login !
I've tried the rubycas-server app and all have gone well
What can I do?
Giorgio
The text was updated successfully, but these errors were encountered: