Skip to content

Instantly share code, notes, and snippets.

@nauman
Created May 16, 2012 12:31
Show Gist options
  • Save nauman/2709993 to your computer and use it in GitHub Desktop.
Save nauman/2709993 to your computer and use it in GitHub Desktop.
fgcp_type = ProviderType.find_by_name('fgcp')
# Create a Username credential definition
CredentialDefinition.create!({
:name => 'username',
:label => 'Username',
:input_type => 'text',
:provider_type => fgcp_type
})
# Create one for Password
CredentialDefinition.create!({
:name => 'password',
:label => 'Password',
:input_type => 'password',
:provider_type => fgcp_type
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment