Commits

Daniel Zoller committed 6a7fb1c

fix api key login

Comments (0)

Files changed (2)

amazon-watcher-database/src/main/resources/de/nosebrain/amazon/watcher/database/UserMapper.xml

 		<id 	column="name"		property="name"		javaType="string" />
 		<result column="mail"		property="mail"		javaType="string" />
 		<result column="role"		property="role"		javaType="Role" />
+		<result column="api_key"	property="apiKey"	javaType="string" />
 		<association property="settings"	javaType="UserSettings">
 			<result 	column="min_delta"		property="minDelta" 	javaType="float" />
 			<result 	column="language"		property="language"		javaType="Locale"/>
 	</resultMap>
 	
 	<sql id="userAttributes">
-		u.name, u.role, u.mail, u.min_delta, u.language, u.item_view_mode
+		u.name, u.role, u.mail, u.min_delta, u.language, u.item_view_mode, u.api_key
 	</sql>
 	
 	<sql id="infoServiceAttributes">

amazon-watcher-database/src/main/resources/de/nosebrain/amazon/watcher/database/schema/amazon-watcher-schema.sql

   `item_view_mode` varchar(25) DEFAULT 'GALLERY',
   `min_delta` float DEFAULT '0.25',
   `language` varchar(5) DEFAULT 'EN',
+  `api_key` varchar(33) DEFAULT NULL,
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;